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

Fix type narrowing for types.EllipsisType (#17003)

Fixes #17002

16abf5cbe08c8b399381fc38220586cf2e49c2bc authored 10 months ago by Shantanu <[email protected]>
Remove redundant Python 3.7 code (#17004)

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]>
[mypyc] Provide an easier way to define IR-to-IR transforms (#16998)

This makes it easy to define simple IR-to-IR transforms by subclassing
`IRTansform` and overrid...

c94d8e3cd02e8be5e4594d84ec77c84b3faf7948 authored 10 months ago by Jukka Lehtosalo <[email protected]>
Disallow all super calls to methods with trivial bodies (#16756)

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]>
Fix single item enum match type exhaustion (#16966)

Fixes #14109

---------

Co-authored-by: Shantanu Jain <[email protected]>

0b8fed526de75284349afbd4b448172b61148931 authored 10 months ago by Oskari Lehto <[email protected]>
Fix inference with UninhabitedType (#16994)

At the moment, inference fails if an empty dict is used (without
annotation) as one of the type...

2fbfb6060a4549a1837d5eed4ad7ef1e8da256b9 authored 10 months ago by Marc Mueller <[email protected]>
Update changelog for 1.9 with acknowledgements. (#16989)

Co-authored-by: Jukka Lehtosalo <[email protected]>
Co-authored-by: Alex Waygood <Alex.Way...

2f0f8f26d7aa3dab3c44a621bbed58c7816db2a4 authored 10 months ago by jhance <[email protected]>
Various 1.9 CHANGELOG updates (#16984)

Mostly minor, but also announce that `--local-partial-types` will be
enabled by default soon an...

d354e763084e3890972c0c912a8290e440959f26 authored 10 months ago by Jukka Lehtosalo <[email protected]>
Add changelog for 1.9.0 (#16978)

I did my best to sort them out in a way I thought was reasonable, but
feel free to suggest impr...

2c66b4821369494e50aa1487e477790d014f8fcc authored 10 months ago by jhance <[email protected]>
Add `py312` target version to `black` config (#16983)

I won't have any effect, but will reflect our target versions better.

42afe6715f9487d1776158bebecf5bb235034719 authored 10 months ago by Nikita Sobolev <[email protected]>
docs: Add missing ClassVar import (#16962)

9f36d7c07d251c37f281a6a62d3b96dc12c09e44 authored 10 months ago by youkaichao <[email protected]>
Add incremental tests for TypeGuard/TypeIs (#16976)

87437b86129a2d6f88137c014241d3610b39a77a authored 10 months ago by Jelle Zijlstra <[email protected]>
Implement TypeIs (PEP 742) (#16898)

Co-authored-by: Marc Mueller <[email protected]>

bcb3747f277745f7a0035bb92cc95ee83f6778dc authored 10 months ago by Jelle Zijlstra <[email protected]>
Allow TypedDict initialization from Type (#16963)

Fixes #11644

3c87af272cbf7c49699b7508c7f51365da139c05 authored 10 months ago by Marc Mueller <[email protected]>
Fix override checking for decorated property (#16856)

Fixes #16855

055184f28dd83f20ba36cadbb7a75e5f30cf36d8 authored 10 months ago by Shantanu <[email protected]>
Sync typeshed (#16969)

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>
Docs: Update `TypedDict` import statements (#16958)

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]>
[mypyc] Fix compilation of unreachable comprehensions (#15721)

Fixes mypyc/mypyc#816. Admittedly hacky.

f19b5d3a026319687dd81a5c7c976698bbe948a8 authored 10 months ago by Richard Si <[email protected]>
[mypyc] Don't crash on non-inlinable final local reads (#15719)

Fixes mypyc/mypyc#852.
Fixes mypyc/mypyc#990.

9f1c90a072c1bbbbb8260ad7181fc1f1acb99137 authored 10 months ago by Richard Si <[email protected]>
[mypyc] Remangle redefined names produced by async with (#16408)

Fixes mypyc/mypyc#1001.

---------

Co-authored-by: Jelle Zijlstra <[email protected]>

162c74d2af77070c6983e0f97fcb593eda4d29d1 authored 10 months ago by Richard Si <[email protected]>
[mypyc] Optimize TYPE_CHECKING to False at Runtime (#16263)

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]>
Fix duplicate word in protocols.rst (#16950)

a91151c46fb0407c9220db9630826634793b9697 authored 11 months ago by hesam <[email protected]>
Workaround parenthesised context manager issue (#16949)

Fixes #16945

2037e4a068df6e1dcc8f76c37f53e04d62d64e80 authored 11 months ago by Shantanu <[email protected]>
Error handling for recursive TypeVar defaults (PEP 696) (#16925)

This PR adds some additional error handling for recursive TypeVar
defaults.
Open issue for fut...

790e8a73d8671a41cae419b4ea07579bfb2bc292 authored 11 months ago by Marc Mueller <[email protected]>
stubgen: Replace obsolete typing aliases with builtin containers (#16780)

Addresses part of #16737

This only replaces typing symbols that have equivalents in the
`bui...

46ebacae0ca5b464a7d422ac1e3370cae32c135a authored 11 months ago by Ali Hamdan <[email protected]>
FIx stubtest's tests to work with the latest version of `typing_extensions` (#16928)

Stubtest's tests will start failing when `typing_extensions==4.10.0`
comes out, due to some new...

eb84794bd02b20e051103f91b6d1dcb01c0e342c authored 11 months ago by Alex Waygood <[email protected]>
Fix narrowing on match with function subject (#16503)

Fixes #12998

mypy can't narrow match statements with functions subjects because the
callexpr...

17271e57cfce5c441c3e481d20b28ca7484db231 authored 11 months ago by Edward Paget <[email protected]>
stubgen: Fix generated dataclass `__init__` signature (#16906)

Fixes #16811

stubgen was swallowing default values for `__init__` methods generated
by the d...

bfbac5efbad32305b2948b82f95c9a8c34d44d34 authored 11 months ago by Ali Hamdan <[email protected]>
Add basic support for recursive TypeVar defaults (PEP 696) (#16878)

Ref: https://github.com/python/mypy/issues/14851

2e5174c82317068645ec888c36902bd19ffcd49d authored 11 months ago by Marc Mueller <[email protected]>
Sync typeshed (#16918)

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>
Allow inferring +int to be a Literal (#16910)

This makes unary positive on integers preserve the literal value of the
integer, allowing `var:...

c26f1297d4f19d2d1124a30efc97caebb8c28616 authored 11 months ago by Spencer Brown <[email protected]>
stubgen: Preserve empty tuple annotation (#16907)

b6e91d46b299bfd0af36b37586d3337a20e14b0e authored 11 months ago by Ali Hamdan <[email protected]>
stubgen: Add support for PEP 570 positional-only parameters (#16904)

This only adds support for Python modules (x-ref #14138)

4a9c1e95457f253f87ef5db970ad8d59209c4715 authored 11 months ago by Ali Hamdan <[email protected]>
stubtest: correct type annotations in _Arguments (#16897)

Two fields in the `_Arguments` class, `mypy_config_file` and
`custom_typeshed_dir`, can take on...

837f7e0ed4f87869f314ec102c0d6e47ec3272ec authored 11 months ago by Sam Xifaras <[email protected]>
Update CI actions (#16901)

Update `actions/setup-python` from `v4` to `v5` and
`actions/github-script` from `v6` to `v7`.
...

996544fe21aa21ee29d1ed5a178e2026edbe6bce authored 11 months ago by Marc Mueller <[email protected]>
Unsupport targetting 3.7. (#16883)

This syncs up this constant to the actual minimum version that typeshed
is now targetting.

-...

d8e3d591048cfe16dbc9cfa2ff88db38c587e3d0 authored 11 months ago by jhance <[email protected]>
Stubtest: ignore a new protocol dunder (#16895)

This is added to all protocol classes on Python 3.12.2+ (it was added in
a patch release of 3.1...

517f5aee23ba218f615bcd4427bca62f120bc222 authored 11 months ago by Alex Waygood <[email protected]>
Bump version to 1.10.0+dev (#16888)

The release branch has been cut:
https://github.com/python/mypy/tree/release-1.9.0
Increase th...

780a29d0b1b93848d7ce3faf8e819a6cc140b2e5 authored 11 months ago by Marc Mueller <[email protected]>
Docs: adding missing `mutable-override` to section title (#16886)

Closes https://github.com/python/mypy/issues/16880
Supercedes https://github.com/python/mypy/pu...

5c5f3ad412bcd0ea510f5918578ed24325829033 authored 11 months ago by James Braza <[email protected]>
stubtest: Private parameters can be omitted (#16507)

Fixes #16443

b956e6a57c4dd36d670097a3eccf7dc092348fec authored 11 months ago by Sebastian Rittau <[email protected]>
Bump ruff to 0.2.0 (#16870)

Fix this deprecation warning when running ruff on the repository
directly:

```
warning: The...

ede0b200a10186a095378516d840389f8da4edd4 authored 11 months ago by Alex Waygood <[email protected]>
stubgen: Fix crash on star unpack of TypeVarTuple (#16869)

Fixes #16864

7bdd61f2d89ecd2cee4ebe6eb2375a72b29f0b10 authored 11 months ago by Ali Hamdan <[email protected]>
Update hashes in sync-typeshed.py following recent typeshed sync

8c2ef9dde8aa803e04038427ad84f09664d9d93f authored 11 months ago by Marc Mueller <[email protected]>
Revert typeshed ctypes change

Since the plugin provides superior type checking: https://github.com/python/mypy/pull/13987#issue...

dd12a2d810f2bbe7a8686674397043b18575480f authored 11 months ago by AlexWaygood <[email protected]>
Sync typeshed

Source commit:
https://github.com/python/typeshed/commit/5ce34dc09606aa3fcd09254e6e51c9d68afefe49

9bb102aafab24c59c42a8b0c071a467c123bd22e authored 11 months ago by Marc Mueller <[email protected]>
Remove use of LiteralString in builtins (#13743)

d25e4a9ebb83d8fb2c49135be1e0c090196ee3b3 authored 11 months ago by Shantanu <[email protected]>
Revert sum literal integer change (#13961)

This is allegedly causing large performance problems, see 13821

typeshed/8231 had zero hits on ...

d132999ba631b332d0684173897e5947591f4acc authored 11 months ago by Shantanu <[email protected]>
Revert use of `ParamSpec` for `functools.wraps`

0dd4b6f7576be3d3857fecefb298decdf0711ac7 authored 11 months ago by AlexWaygood <[email protected]>
Expand TypeVarTuple default (PEP 696) (#16851)

Small change to fix an error when expanding a TypeVarTuple default.

```
RuntimeError: Invali...

3804f7e320288e625bbedc916a6c26d635bf8e3f authored 11 months ago by Marc Mueller <[email protected]>
Fix TypeVar defaults with None (PEP 696) (#16859)

Ref: https://github.com/python/mypy/issues/14851

3f58c2d940ac92afe8cf4c80cf6508b048dd272e authored 11 months ago by Marc Mueller <[email protected]>
Sync Typeshed (for 1.9 release) (#16844)

Co-authored-by: Shantanu <[email protected]>
Co-authored-by: AlexW...

67c396908f71e2d5d6aa942fc0b431b8772d4e45 authored 11 months ago by jhance <[email protected]>
Fix duplicated TypeVarTuple test (#16853)

https://github.com/python/mypy/pull/15879#discussion_r1475245425

ba90dc48fef38e48f0615f1f742a767fcde70fa9 authored 11 months ago by Jelle Zijlstra <[email protected]>
Remove unnecessary --python-version 3.8 references from tests (#16850)

Remove the `--python-version 3.8` flag where it's used to indicate the
min python version requi...

e48a0258a4bb61710045b6f2136f8b119b9fd525 authored 11 months ago by Marc Mueller <[email protected]>
Remove --python-version 3.7 references from tests (#16848)

Remove `--python-version 3.7` from tests if not necessary anymore or use
`3.8` where it makes s...

9f510570c703c57f4ad596a4d8df7d9283d18c4c authored 11 months ago by Marc Mueller <[email protected]>
Update ruff to 0.1.15 (#16846)

d94b972ad3a2f61076ce1a70cf7e1dca1c9fe289 authored 11 months ago by Marc Mueller <[email protected]>
Update black to 24.1.1 (#16847)

8107e53158d83d30bb04d290ac10d8d3ccd344f8 authored 11 months ago by Marc Mueller <[email protected]>
Fix disallow-any errors for Instance types (PEP 696) (#16832)

Similar to TypeAlias types `Missing type parameters for generic type`
should not be emitted if ...

c3cd83a23dcdbd72e6e2a4c2d6c605eadc7bccf4 authored 11 months ago by Marc Mueller <[email protected]>
Fix missing type store for overloads (#16803)

Add missing call to store inferred types if an overload match is found
early. All other code pa...

5bf774234da052efffd14e6c3dd26d93a14e3cc8 authored 11 months ago by Marc Mueller <[email protected]>
Apply TypeVar defaults to callables (PEP 696) (#16842)

Implement type application for callables with TypeVar defaults.
Similar to previous PRs, suppor...

55247c469077963a389941a2386ff2747abe517a authored 11 months ago by Marc Mueller <[email protected]>
Update new type system discussion links (#16841)

As of the 10th of September 2023 the typing-sig mail list is now
replaced with
[discuss.python...

e40935e5e0b55bee9379e35aa27216c3e0287b13 authored 11 months ago by thomaswhaley <[email protected]>
Fix `'WriteToConn' object has no attribute 'flush'` (#16801)

`WriteToConn` replaces stdout and stderr to capture output, but causes
issues because it doesn'...

06b01c80a1a365cb8af80b9eecfbe4b14f04fc3e authored 11 months ago by Charlie Denton <[email protected]>
Update TypeAlias error messages to remove colon (#16831)

Small update to adjust the error messages following the suggestion in
https://github.com/python...

ed50208055e8c5f99caf7da0cea8c99fcfdc5670 authored 11 months ago by Marc Mueller <[email protected]>
Consider TypeVarTuple to be invariant (#16759)

The TypeVarTuple equality checks mentioned in PEP 646 assume
TypeVarTuple to be `invariant`.
h...

7a746c4dbd8a0d35e9a3889c9fc861b63aec66cc authored 11 months ago by Marc Mueller <[email protected]>
Fix numbering error in docs (#16838)

418377892f3220958f0d71c3429a9e7e638b8ca0 authored 11 months ago by Stefanie Molin <[email protected]>
Various docs improvements (#16836)

Recommend `--disable-error-code=import-untyped`. It's probably strictly
better than `--ignore-m...

1da0ebe5ab96cb4982184e405260822a18b3502c authored 11 months ago by Shantanu <[email protected]>
Use TypeVar defaults instead of Any when fixing TypeAlias types (PEP 696) (#16825)

This PR applies the TypeVar defaults to `TypeAlias` types instead of
using `Any` exclusively, s...

09490c890590d1ead414b06a332c7570fd589342 authored 12 months ago by Marc Mueller <[email protected]>
stubtest: adjust symtable logic (#16823)

Fixes https://github.com/python/typeshed/issues/11318

717a263fcb594689ff48b1d1a88a8bc4f10c2652 authored 12 months ago by Shantanu <[email protected]>
Docs: Add missing class instantiation to cheat sheet (#16817)

3838bff555de4237cb77ef2a191a6791a4d0ae7a authored 12 months ago by Aleksi Tarvainen <[email protected]>
Use TypeVar defaults instead of Any when fixing instance types (PEP 696) (#16812)

Start using TypeVar defaults when fixing instance types, instead of
filling those with `Any`.
...

ec06e004426d92637cd0ddd266a464cea723f952 authored 12 months ago by Marc Mueller <[email protected]>
stubtest: Add support for setting enum members to "..." (#16807)

Unblock python/typeshed#11299

7eab8a429187ffd2b64bbb9ca29f7d24b262d269 authored 12 months ago by Jelle Zijlstra <[email protected]>
stubgen: Do not ignore property deleter (#16781)

Fixes #16690

75b68fa2c0d32bd08b98b00aece20c22d82b1b15 authored 12 months ago by Ali Hamdan <[email protected]>
Support narrowing unions that include type[None] (#16315)

Fixes #16279

See my comment in the referenced issue.

261e569e2c256451692dd57c05295ef0bcfb34fd authored 12 months ago by Christoph Tyralla <[email protected]>
Support TypedDict functional syntax as class base type (#16703)

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]>
Improve mypy daemon documentation note about local partial types (#16782)

The existing documentation almost makes it seem like the user has the
option to toggle this.

186ace34432014e668de2ed1449f9262c1e7f056 authored 12 months ago by Makonnen Makonnen <[email protected]>
Fix failing stubgen tests (#16779)

e64fb9f7fe75d5e5aa722f80576bd2b67b442a4e authored 12 months ago by Ali Hamdan <[email protected]>
stubgen: use PEP 604 unions everywhere (#16519)

Fixes #12920

e28925ddd34fd128d509b5b4741789578462cbe0 authored 12 months ago by Ali Hamdan <[email protected]>
Improve stubgen tests (#16760)

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]>
stubtest: fix pos-only handling in overload resolution (#16750)

1fd29ac54a2135ec1d1d30289c625d12e6198eac authored 12 months ago by Shantanu <[email protected]>
Accept multiline quoted annotations (#16765)

See discussion in
https://discuss.python.org/t/newlines-within-triple-quoted-type-expressions/4...

edebe024cbe8406cdf191cefe111683d0c2849ea authored 12 months ago by Shantanu <[email protected]>
Support type stub generation for `staticmethod` (#14934)

Fixes #13574

This PR fixes the generation of type hints for static methods of
pybind11 class...

35f402c74205d373b81076ea82f507eb85161a25 authored 12 months ago by WeilerMarcel <[email protected]>
[minor] Fix arg name in classmethod (#16741)

fbb738a4626976f83a7412df73533d87483a31b7 authored about 1 year ago by Ihor <[email protected]>
Document how evil `--no-strict-optional` is (#16731)

On multiple occasions, I've encountered folks using this, running into
issues and then being pe...

a1b4e32785b69291748579d97cb9456e1198ec21 authored about 1 year ago by Shantanu <[email protected]>
Allow unary + in Literal (#16729)

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]>
Fix various lint (#16726)

d0d5876d876272c56a339c628197935906c57e3c authored about 1 year ago by Shantanu <[email protected]>
Fix xml writing bug introduced in #16388 (#16713)

#16388 introduced a bug where invalid xml could be produced by
`write_junit_xml`, as special ch...

4aba5ca8450ad3f06805f2bd6dfcd06048a3f1d2 authored about 1 year ago by Fabian Lewis <[email protected]>
Sync typeshed (#16721)

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>
Speed up finding function type variables (#16562)

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]>
Speed up pythoneval tests (#16559)

Skip slow and unnecessary overload checks in stdlib stubs in these
tests. These checks already ...

f79ae69be1b0c920eec6bf181e6f8c7689cbae20 authored about 1 year ago by Jukka Lehtosalo <[email protected]>
Fix a single-letter typo in a comment (#16699)

92fa54822588ef2af453f1623d4dda48f4f2712b authored about 1 year ago by Stephen Morton <[email protected]>
Fix typo in getting_started.rst (#16700)

3338c574b92a6eae10e28e1546f4f3f8ba4c20f0 authored about 1 year ago by zipperer <[email protected]>
Minor updates to mypy 1.8 changelog entries (#16692)

7d842e865331b3b6f44a116a886ea3c24eb67461 authored about 1 year ago by Jukka Lehtosalo <[email protected]>
changelog: add release notes for 1.8 (#16689)

08cd371e1a286045139e94622b28e3e9e11b6e63 authored about 1 year ago by Wesley Collin Wright <[email protected]>
Substitute type variables in return type of static methods (#16670)

`add_class_tvars` correctly instantiates type variables in the return
type for class methods bu...

1dd8e7fe654991b01bd80ef7f1f675d9e3910c3a authored about 1 year ago by Kouroche Bouchiat <[email protected]>
Sync typeshed (#16665)

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>
Document --enable-incomplete-feature possible values in "mypy --help" (#16661)

By the way, also remove `--enable-incomplete-feature=Unpack
--enable-incomplete-feature=TypeVar...

5e77c3e96d3f3720d177c74acff07cc3319e8684 authored about 1 year ago by Froger David <[email protected]>
Remove `_is_compatible_stub_package` check from `modulefinder` (#16633)

Closes https://github.com/python/mypy/issues/16632

09cb2d17cd16003937835b78bde9a6dbe627204c authored about 1 year ago by Nikita Sobolev <[email protected]>
Update `project_urls` in `setup.py` (#16622)

Made the following changes to `project_urls` in `setup.py`:
- removed link to "News"
- added ...

6acccd13dc4e5a630b8cd95061f2bc352e4dbac6 authored about 1 year ago by Dheeraj <[email protected]>
Fix tests broken by hatchling (#16655)

728e03a687c065bf82256675d53309e60290e108 authored about 1 year ago by Shantanu <[email protected]>
Improve attrs hashability detection (#16556)

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]>
Fix crash with type alias to `Callable[[Unpack[Tuple[Any, ...]]], Any]` (#16541)

Fixes #16533

5fa95693bb3ca312224a5194dbb5149f8e7d7a55 authored about 1 year ago by Alex Waygood <[email protected]>