Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/python/mypy
Optional static typing for Python
https://github.com/python/mypy
Fixes #17002
16abf5cbe08c8b399381fc38220586cf2e49c2bc authored 10 months ago by Shantanu <[email protected]>Some follow on from https://github.com/python/mypy/pull/15566.
Also add 3.12 to tox.ini.
4259e37875219d30427a66304033f661f8b47f8f authored 10 months ago by Hugo van Kemenade <[email protected]>
This makes it easy to define simple IR-to-IR transforms by subclassing
`IRTansform` and overrid...
Relates to:
https://discuss.python.org/t/calling-abstract-methods/42576
I think this makes m...
e0ad95296037446fccb398b8dadc54ae0751df46 authored 10 months ago by Shantanu <[email protected]>Fixes #14109
---------
Co-authored-by: Shantanu Jain <[email protected]>
0b8fed526de75284349afbd4b448172b61148931 authored 10 months ago by Oskari Lehto <[email protected]>
At the moment, inference fails if an empty dict is used (without
annotation) as one of the type...
Co-authored-by: Jukka Lehtosalo <[email protected]>
Co-authored-by: Alex Waygood <Alex.Way...
Mostly minor, but also announce that `--local-partial-types` will be
enabled by default soon an...
I did my best to sort them out in a way I thought was reasonable, but
feel free to suggest impr...
I won't have any effect, but will reflect our target versions better.
42afe6715f9487d1776158bebecf5bb235034719 authored 10 months ago by Nikita Sobolev <[email protected]>9f36d7c07d251c37f281a6a62d3b96dc12c09e44 authored 10 months ago by youkaichao <[email protected]>
87437b86129a2d6f88137c014241d3610b39a77a authored 10 months ago by Jelle Zijlstra <[email protected]>
Co-authored-by: Marc Mueller <[email protected]>
bcb3747f277745f7a0035bb92cc95ee83f6778dc authored 10 months ago by Jelle Zijlstra <[email protected]>Fixes #11644
3c87af272cbf7c49699b7508c7f51365da139c05 authored 10 months ago by Marc Mueller <[email protected]>Fixes #16855
055184f28dd83f20ba36cadbb7a75e5f30cf36d8 authored 10 months ago by Shantanu <[email protected]>Source commit:
https://github.com/python/typeshed/commit/e05098681f326b98c635853a40287ac21f77...
ab0bd8cac3f4183ca0c67ab7f9235c6b515ac2f3 authored 10 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Since Python 3.8, `TypedDict` has been available from the `typing`
module.
As Python 3.8+ is...
02c50bcbc0ee26ec682c7356a1b3b9ecd9c11a3c authored 10 months ago by Riccardo Di Maio <[email protected]>Fixes mypyc/mypyc#816. Admittedly hacky.
f19b5d3a026319687dd81a5c7c976698bbe948a8 authored 10 months ago by Richard Si <[email protected]>
Fixes mypyc/mypyc#852.
Fixes mypyc/mypyc#990.
Fixes mypyc/mypyc#1001.
---------
Co-authored-by: Jelle Zijlstra <[email protected]>
162c74d2af77070c6983e0f97fcb593eda4d29d1 authored 10 months ago by Richard Si <[email protected]>Fixes [mypyc/mypyc#902](https://github.com/mypyc/mypyc/issues/902)
This PR finds references o...
5a8cd80857fd7a1771d5f714c3e3ad69af4070c8 authored 10 months ago by Srinivas Lade <[email protected]>a91151c46fb0407c9220db9630826634793b9697 authored 11 months ago by hesam <[email protected]>
Fixes #16945
2037e4a068df6e1dcc8f76c37f53e04d62d64e80 authored 11 months ago by Shantanu <[email protected]>
This PR adds some additional error handling for recursive TypeVar
defaults.
Open issue for fut...
Addresses part of #16737
This only replaces typing symbols that have equivalents in the
`bui...
Stubtest's tests will start failing when `typing_extensions==4.10.0`
comes out, due to some new...
Fixes #12998
mypy can't narrow match statements with functions subjects because the
callexpr...
Fixes #16811
stubgen was swallowing default values for `__init__` methods generated
by the d...
Ref: https://github.com/python/mypy/issues/14851
2e5174c82317068645ec888c36902bd19ffcd49d authored 11 months ago by Marc Mueller <[email protected]>Source commit:
https://github.com/python/typeshed/commit/48a0497b2310e8e4bcb81c72aed7517b2a3a...
5ffa6dde6e295c7cd1bc237dcc252672a39c625e authored 11 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This makes unary positive on integers preserve the literal value of the
integer, allowing `var:...
b6e91d46b299bfd0af36b37586d3337a20e14b0e authored 11 months ago by Ali Hamdan <[email protected]>
This only adds support for Python modules (x-ref #14138)
4a9c1e95457f253f87ef5db970ad8d59209c4715 authored 11 months ago by Ali Hamdan <[email protected]>
Two fields in the `_Arguments` class, `mypy_config_file` and
`custom_typeshed_dir`, can take on...
Update `actions/setup-python` from `v4` to `v5` and
`actions/github-script` from `v6` to `v7`.
...
This syncs up this constant to the actual minimum version that typeshed
is now targetting.
-...
d8e3d591048cfe16dbc9cfa2ff88db38c587e3d0 authored 11 months ago by jhance <[email protected]>
This is added to all protocol classes on Python 3.12.2+ (it was added in
a patch release of 3.1...
The release branch has been cut:
https://github.com/python/mypy/tree/release-1.9.0
Increase th...
Closes https://github.com/python/mypy/issues/16880
Supercedes https://github.com/python/mypy/pu...
Fixes #16443
b956e6a57c4dd36d670097a3eccf7dc092348fec authored 11 months ago by Sebastian Rittau <[email protected]>
Fix this deprecation warning when running ruff on the repository
directly:
```
warning: The...
Fixes #16864
7bdd61f2d89ecd2cee4ebe6eb2375a72b29f0b10 authored 11 months ago by Ali Hamdan <[email protected]>8c2ef9dde8aa803e04038427ad84f09664d9d93f authored 11 months ago by Marc Mueller <[email protected]>
Since the plugin provides superior type checking: https://github.com/python/mypy/pull/13987#issue...
dd12a2d810f2bbe7a8686674397043b18575480f authored 11 months ago by AlexWaygood <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/5ce34dc09606aa3fcd09254e6e51c9d68afefe49
d25e4a9ebb83d8fb2c49135be1e0c090196ee3b3 authored 11 months ago by Shantanu <[email protected]>
This is allegedly causing large performance problems, see 13821
typeshed/8231 had zero hits on ...
d132999ba631b332d0684173897e5947591f4acc authored 11 months ago by Shantanu <[email protected]>0dd4b6f7576be3d3857fecefb298decdf0711ac7 authored 11 months ago by AlexWaygood <[email protected]>
Small change to fix an error when expanding a TypeVarTuple default.
```
RuntimeError: Invali...
Ref: https://github.com/python/mypy/issues/14851
3f58c2d940ac92afe8cf4c80cf6508b048dd272e authored 11 months ago by Marc Mueller <[email protected]>
Co-authored-by: Shantanu <[email protected]>
Co-authored-by: AlexW...
https://github.com/python/mypy/pull/15879#discussion_r1475245425
ba90dc48fef38e48f0615f1f742a767fcde70fa9 authored 11 months ago by Jelle Zijlstra <[email protected]>
Remove the `--python-version 3.8` flag where it's used to indicate the
min python version requi...
Remove `--python-version 3.7` from tests if not necessary anymore or use
`3.8` where it makes s...
d94b972ad3a2f61076ce1a70cf7e1dca1c9fe289 authored 11 months ago by Marc Mueller <[email protected]>
8107e53158d83d30bb04d290ac10d8d3ccd344f8 authored 11 months ago by Marc Mueller <[email protected]>
Similar to TypeAlias types `Missing type parameters for generic type`
should not be emitted if ...
Add missing call to store inferred types if an overload match is found
early. All other code pa...
Implement type application for callables with TypeVar defaults.
Similar to previous PRs, suppor...
As of the 10th of September 2023 the typing-sig mail list is now
replaced with
[discuss.python...
`WriteToConn` replaces stdout and stderr to capture output, but causes
issues because it doesn'...
Small update to adjust the error messages following the suggestion in
https://github.com/python...
The TypeVarTuple equality checks mentioned in PEP 646 assume
TypeVarTuple to be `invariant`.
h...
418377892f3220958f0d71c3429a9e7e638b8ca0 authored 11 months ago by Stefanie Molin <[email protected]>
Recommend `--disable-error-code=import-untyped`. It's probably strictly
better than `--ignore-m...
This PR applies the TypeVar defaults to `TypeAlias` types instead of
using `Any` exclusively, s...
Fixes https://github.com/python/typeshed/issues/11318
717a263fcb594689ff48b1d1a88a8bc4f10c2652 authored 12 months ago by Shantanu <[email protected]>3838bff555de4237cb77ef2a191a6791a4d0ae7a authored 12 months ago by Aleksi Tarvainen <[email protected]>
Start using TypeVar defaults when fixing instance types, instead of
filling those with `Any`.
...
Unblock python/typeshed#11299
7eab8a429187ffd2b64bbb9ca29f7d24b262d269 authored 12 months ago by Jelle Zijlstra <[email protected]>Fixes #16690
75b68fa2c0d32bd08b98b00aece20c22d82b1b15 authored 12 months ago by Ali Hamdan <[email protected]>Fixes #16279
See my comment in the referenced issue.
261e569e2c256451692dd57c05295ef0bcfb34fd authored 12 months ago by Christoph Tyralla <[email protected]>Fixes https://github.com/python/mypy/issues/16701
This PR allows `TypedDict(...)` calls to be...
b1fe23f5a3a4457cae3430acca6e99a36e3efd00 authored 12 months ago by anniel-stripe <[email protected]>
The existing documentation almost makes it seem like the user has the
option to toggle this.
e64fb9f7fe75d5e5aa722f80576bd2b67b442a4e authored 12 months ago by Ali Hamdan <[email protected]>
Fixes #12920
e28925ddd34fd128d509b5b4741789578462cbe0 authored 12 months ago by Ali Hamdan <[email protected]>Improve test cases around #16486
This PR does not change any actual mypy behavior, only harde...
a8741d8fda2695e189add60b1cfc4adebd2c3e1e authored 12 months ago by Fabian Keller <[email protected]>1fd29ac54a2135ec1d1d30289c625d12e6198eac authored 12 months ago by Shantanu <[email protected]>
See discussion in
https://discuss.python.org/t/newlines-within-triple-quoted-type-expressions/4...
Fixes #13574
This PR fixes the generation of type hints for static methods of
pybind11 class...
fbb738a4626976f83a7412df73533d87483a31b7 authored about 1 year ago by Ihor <[email protected]>
On multiple occasions, I've encountered folks using this, running into
issues and then being pe...
Implements python/typing#1550
Fixes #16727 (a trivial bug I found while implementing this fea...
f9e8e0bda5cfbb54d6a8f9e482aa25da28a1a635 authored about 1 year ago by Jelle Zijlstra <[email protected]>d0d5876d876272c56a339c628197935906c57e3c authored about 1 year ago by Shantanu <[email protected]>
#16388 introduced a bug where invalid xml could be produced by
`write_junit_xml`, as special ch...
Source commit:
https://github.com/python/typeshed/commit/1d3c3265180ae4421be4ce6508810708ccd6...
b08c8b5737b3d4aa6f5f1e45c49dc1a5316679fc authored about 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Merge two visitors into a single visitor that is a bit more optimized
than the old visitors.
...
761965d260e54f8e150d8bd7ac3ab3efd6503b93 authored about 1 year ago by Jukka Lehtosalo <[email protected]>
Skip slow and unnecessary overload checks in stdlib stubs in these
tests. These checks already ...
92fa54822588ef2af453f1623d4dda48f4f2712b authored about 1 year ago by Stephen Morton <[email protected]>
3338c574b92a6eae10e28e1546f4f3f8ba4c20f0 authored about 1 year ago by zipperer <[email protected]>
7d842e865331b3b6f44a116a886ea3c24eb67461 authored about 1 year ago by Jukka Lehtosalo <[email protected]>
08cd371e1a286045139e94622b28e3e9e11b6e63 authored about 1 year ago by Wesley Collin Wright <[email protected]>
`add_class_tvars` correctly instantiates type variables in the return
type for class methods bu...
Source commit:
https://github.com/python/typeshed/commit/b6740d0bf4b4cf89befae74a0b12ebef6ce7...
43ffb49102e2508b5e4767d200872060ddc9f0fc authored about 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
By the way, also remove `--enable-incomplete-feature=Unpack
--enable-incomplete-feature=TypeVar...
Closes https://github.com/python/mypy/issues/16632
09cb2d17cd16003937835b78bde9a6dbe627204c authored about 1 year ago by Nikita Sobolev <[email protected]>
Made the following changes to `project_urls` in `setup.py`:
- removed link to "News"
- added ...
728e03a687c065bf82256675d53309e60290e108 authored about 1 year ago by Shantanu <[email protected]>
Fixes #16550
Improve hashability detection for attrs classes.
I added a new parameter to `...
91be28552e062601adc2a07075263994c102d5cc authored about 1 year ago by Tin Tvrtković <[email protected]>Fixes #16533
5fa95693bb3ca312224a5194dbb5149f8e7d7a55 authored about 1 year ago by Alex Waygood <[email protected]>