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

stubtest: fix error for Protocol.__init__ and __annotations__ (#13179)

53465bd7494efa93ebec40b9ee4e7efc3c9ea35f authored over 2 years ago by Alex Waygood <[email protected]>
Update GitHub Actions to their latest versions (#13188)

64035bdc52c76225ec37887e9272b2d7fdf8fd9c authored over 2 years ago by Nikita Sobolev <[email protected]>
Improve error message for direct __init__ calls (#13183)

Resolves #13173

Co-authored-by: hauntsaninja <>

28258d076b02af750b18e76fc69290579e9fc7e0 authored over 2 years ago by Shantanu <[email protected]>
Add unbound typevar check (#13166)

### Description

This should fix Issue #13061 .

Mypy should now raise an error when it enco...

2c152e66142aabdb7730fd55a10bd506bc0d0208 authored over 2 years ago by Aurélien Jaquier <[email protected]>
Revert "Use Python 3.7 as default in tests, drop 3.6 in CI (#13101)"

This reverts commit d22899f2166c1adeb9daf0326cc068beca4f7bb9.

98f24f4a617f445bd61a2dca18b5b27b11db463c authored over 2 years ago by Jared Hance <[email protected]>
Use Python 3.7 as default in tests, drop 3.6 in CI (#13101)

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

d22899f2166c1adeb9daf0326cc068beca4f7bb9 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Fix checker test case collection by using correct test data prefix (#13190)

Use `mypy.test.config.test_data_prefix` instead of hard coding it. This
should fix mypy wheel b...

5b48b39d862cd3c2626aab3d3a99de631dfb91d2 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Basic support for `typing_extensions.NamedTuple` (#13178)

fbbcc50dae3c9f88fb5d1e22f4d0324cc5a3d618 authored over 2 years ago by Alex Waygood <[email protected]>
Add back workaround to avoid confusing mypy.types and types in pyinfo (#13176)

We run mypy/pyinfo.py as a script, and this means that mypy/types.py
could be picked up instead...

1a1091e9b8e732461568677456d29ad3ddb820fc authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Rename test file so it matches autodiscover regex (#13175)

b8bad23e3eb86560a41e7c16722d37ddccbfbc43 authored over 2 years ago by Patryk Gałczyński <[email protected]>
Uncap pytest-cov (#13170)

Co-authored-by: hauntsaninja <>

e85ecaf5040a807b60929e9ba09e782aec01c774 authored over 2 years ago by Shantanu <[email protected]>
Print slow tests in CI (#13163)

5c474fd4927c6bec52135b00bd647a9290ce660f authored over 2 years ago by Shantanu <[email protected]>
Fix CI issue due to skipping missing interpreters (#13168)

Co-authored-by: KotlinIsland <[email protected]>

1de7dca9798c13781fc936063822484203276b11 authored over 2 years ago by KotlinIsland <[email protected]>
Drop need for virtualenv (#13136)

Linking #12237

ed5a2a00cb2e30349614d9b5328f709c367ff1c2 authored over 2 years ago by Shantanu <[email protected]>
Allow nonlocal in function scoped classes (#13158)

Fixes #12730

Co-authored-by: mrolle45

37080f5ef7aa78f891867c212d280b7c4e10bb4e authored over 2 years ago by Shantanu <[email protected]>
stubtest: catch all for errors from the runtime (#13160)

Fixes #12931

111a7da923b2c63e4c96ba5c387fdb19f101dc61 authored over 2 years ago by Shantanu <[email protected]>
`is_singleton_type`: move business logic to type definitions (#13165)

This greatly reduces complexity as each type can determine for
themselves if they are represent...

35d9aef5b4a6bbbe1c67798505f2197386bc4649 authored over 2 years ago by László Vaskó <[email protected]>
Support for Python 3.11's "safe_path" in pyinfo (#13164)

6635b4701a369c4de600e3c4647de42b0bc5d74e authored over 2 years ago by Shantanu <[email protected]>
Tests autodiscovery replacing hardcoded file list (#13143)

This PR hopefully resolves https://github.com/python/mypy/issues/8650.

The main change is the...

6f93fc16e17fff1c4c802db3dadd009fa094e38c authored over 2 years ago by Patryk Gałczyński <[email protected]>
Union types: Support narrowing to `Ellipsis` (`...`) cases of `Unions` (#13157)

After this change, narrowing to `Ellipsis` works similarly with
regards to narrowing as `None` ...

b6d525d3220e5e973512d8ad2b9aa999425f3240 authored over 2 years ago by László Vaskó <[email protected]>
[mypyc] Fix __call__ subclasses (#13152)

Fixes #12605
Fixes https://github.com/mypyc/mypyc/issues/925

3d19fc993fd92a9cd07dea754899f7ca538ed0ca authored over 2 years ago by Ken Jin <[email protected]>
Treating NoneType as None and warning against using NoneType. (#13153)

### Description

Fixes #11288

Warns people to not use `NoneType` as a type annotation, as r...

baf4af41e2c4f6c585723f8458cfdd429af13453 authored over 2 years ago by Jakub Strnad <[email protected]>
Handle cwd correctly in pyinfo (#13161)

This fixes a recent regression introduced by the change to
use sys.path

Fixes #12956

8a974e18d68daa59d6ab086dca81557c7d6dcd18 authored over 2 years ago by Shantanu <[email protected]>
[minor] replace loops with comprehensions or calls (#13159)

8428af7e23c582bf1e088777a83888cad98cb233 authored over 2 years ago by anilbey <[email protected]>
[mypyc] fix `setup` conflict with attributes named `up` (#13012)

3e978b2e3d7a79f9fd3a5a4ac438762f1af13613 authored over 2 years ago by davfsa <[email protected]>
Revert "Use Python 3.7 as default in tests, drop 3.6 in CI (#13101)"

This reverts commit 6ab2e85da006a272ec47d3db36d7769465375ecd.

8e609b2d180b278f1cc2ddea88014795ab9d3e6f authored over 2 years ago by Jared Hance <[email protected]>
Use Python 3.7 as default in tests, drop 3.6 in CI (#13101)

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

6ab2e85da006a272ec47d3db36d7769465375ecd authored over 2 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Fix bad C generated for multiple assignment (#13147)

We need to flush keep alives also after a multiple assignment, as otherwise
the generated IR wi...

b13a450937df63775cdd27b660cad0b37d1f602e authored over 2 years ago by Jukka Lehtosalo <[email protected]>
flush keepalives on operator assignment statements (#13144)

This PR makes mypyc flush keepalives on operator assignment statements, to prevent accessing und...

d3e0db77f4aab46d3a748ebc7b5ca93435e54765 authored over 2 years ago by Zsolt Dollenstein <[email protected]>
add depth parameter to git clone command (#13145)

16363d3b9337c83ff5a18176cedb88057108a7d4 authored over 2 years ago by anilbey <[email protected]>
update tox, add py38,39,310 remove py35 (#13138)

fd02457a6b52ce9a604bda7efd20eb17298dd3d8 authored over 2 years ago by anilbey <[email protected]>
protocols.rst: fix documentation (#13137)

It is not referring to keyword arguments, but to arguments in general.

Fixes #8805.

ca6357e230810d7a75e38487b33872ca530fcb63 authored over 2 years ago by Zsolt Cserna <[email protected]>
Skip musllinux wheels, update for lxml changes (#13129)

See https://github.com/mypyc/mypy_mypyc-wheels/pull/35 for motivation

We also need fewer lxml...

227e50d0adae465cca1bac84ee85ed3eeae918e7 authored over 2 years ago by Shantanu <[email protected]>
[mypyc] update, simplify check version test (#13125)

Co-authored-by: hauntsaninja <>

4479e0c2a75b7b802adf628034fa83beee9572c1 authored over 2 years ago by Shantanu <[email protected]>
Use new NamedTuples in mypy (#13130)

5b094d5a49e301bb8944e13ad16bbe947b82317f authored over 2 years ago by Shantanu <[email protected]>
stubgen: increase get_package_properties timeout (#13109)

Some packages may take a very long time to import, which can spuriously
trip the timeout in Mod...

7c6faf4c7a7bac6b126a30c5c61f5d209a4312c0 authored over 2 years ago by Matthew Woehlke <[email protected]>
[mypyc] Add LoadAddress op for PyFloat_Type & PyTuple_Type (#13078)

- Fixes https://github.com/mypyc/mypyc/issues/924
- Fixes https://github.com/mypyc/mypyc/issues...

64a40e8487f591d57576396baaafae9e3a618555 authored over 2 years ago by Richard Si <[email protected]>
Sync typeshed (#13097)

Source commit:
https://github.com/python/typeshed/commit/b145b32aa988bcb0c85ece32ce64df521fcafa...

3ae19a25f0a39358ede1383e93d44ef9abf165e0 authored over 2 years ago by Shantanu <[email protected]>
Allow passing arguments to stubgen.main (#13095)

Modify signature of stubgen.main to accept a user-provided list of
arguments. This allows users...

256f1f33f6be15a461e8aabe9aef705ac77f7e6a authored over 2 years ago by Matthew Woehlke <[email protected]>
Bump dev version (#13096)

Co-authored-by: Ivan Levkivskyi <[email protected]>

ccfbfc1b2a238ae83267b625d12c49bc9e538794 authored over 2 years ago by Ivan Levkivskyi <[email protected]>
Fix crash overriding partial-type attribute with method (#12943)

Attributes can still be partially typed (e.g. `<partial list[?]>`) after
a parent-class definit...

9f99400b748a4550813c54fb3f7a00268affdd6d authored over 2 years ago by Jake Lishman <[email protected]>
Don't add __match_args__ for dataclasses and named tuples with --python-version < 3.10 (#12503)

Fixes #12489

49b4b3da336cefb2aceb13ee721b5aa7b15bf8e0 authored over 2 years ago by Stanislav K <[email protected]>
Fix false-positive error on multiple enum base classes (#12963)

Fixes #12787.

Mypy currently emits a false-positive error for this snippet of code, even thou...

1fedf2c1adfcaccf7c19adbc8dee5cddebdd5d33 authored over 2 years ago by Alex Waygood <[email protected]>
Fix typeshed regression in unittest (#13092)

Fixes #13090

Co-authored-by: Ivan Levkivskyi <[email protected]>

b0c1556c145a8b1fbd613b55d2144b8757baed54 authored over 2 years ago by Ivan Levkivskyi <[email protected]>
Remove use of LiteralString in builtins (#13093)

Fixes #13091

Co-authored-by: Ivan Levkivskyi <[email protected]>

ce891e32d4306df2b9a8bbcb4b88dae9750aa16c authored over 2 years ago by Ivan Levkivskyi <[email protected]>
Sync typeshed (#12982)

* Sync typeshed

Source commit:
https://github.com/python/typeshed/commit/91d6383d9d1ca38157c...

7a6ecd3c96b61a9df59fa580acade0fde2a77d90 authored over 2 years ago by Shantanu <[email protected]>
docs: remove duplicate word (#13080)

eaf60916a494ff8d36cab05331205d2d4bfe38bc authored over 2 years ago by Poruri Sai Rahul <[email protected]>
[mypyc] Add LoadAddress primitive op for PySet_Type & PyFrozenSet_Type (#13057)

This also fixes https://github.com/mypyc/mypyc/issues/917

RE above, the root issue is that my...

86aefb14ffb92975ccd312f12c65919b26002c8d authored over 2 years ago by Richard Si <[email protected]>
stubtest: find submodules missing from stubs (#13030)

Co-authored-by: hauntsaninja <>

914297e9486b141c01b34593938fdf423d892cef authored over 2 years ago by Shantanu <[email protected]>
Fix "attribute 'arguments' of 'FuncDef' undefined" incremental crash (#12324)

When deserializing from cache, FuncDef.arguments is not set, so
check before use.

1c03e1068f4b1f79aa760639cd12e631783dadcc authored over 2 years ago by Frédéric Perrin <[email protected]>
Remove slots already defined in base class (#13028)

a4ae0adb6fb0872042e0459f915254140df28b5e authored over 2 years ago by denballakh <[email protected]>
Exposes `end_col_offset` attr from python AST (#12972)

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

1c1f3495772a4f02c7a0e646466d2c35a69c9813 authored over 2 years ago by bruno messias <[email protected]>
stubtest: better formatting for runtime objects (#13023)

Co-authored-by: hauntsaninja <>

f663828a66900a438c4a4be6f036c95c46636551 authored over 2 years ago by Shantanu <[email protected]>
Replace hard crash with typecheck error when subclass method has the same name as type alias (#13015)

Work on #5425

Co-authored-by: Wesley Wright <[email protected]>

203bd64d8c14e8ddbed7911eb6f8f8aa61d728de authored over 2 years ago by Wesley Collin Wright <[email protected]>
Disallow undesirable implicit reexport with ImportFrom (#12704)

Fixes #12689

We always hid e.g. `import concurrent`, but looks like mypy
never hid `from con...

e046e20882916f7c18b20cf7502b8c420fbe859b authored over 2 years ago by Shantanu <[email protected]>
Support unannotated converters for attr.ib (#12815)

### Description

Fixes #6172

If an unannotated converter function or a lambda expression is...

5039c0fe44a7592b2fcb07cead49d921ecea211f authored over 2 years ago by t4lz <[email protected]>
[mypyc] Native int primitives (#12973)

Add various C primitives that will be used to support native ints.

The primitives aren't used...

eb1b1e007e7fd1e976e6dd0f49a71b662a30a2d6 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Add a short note when an error may be fixed by adding an await (#12958)

I only cover few most common situations. If this will show to be useful, we can expand the scope...

145d8a41b17ab1ba8707589be9cb5d56bbebd0ea authored over 2 years ago by Ivan Levkivskyi <[email protected]>
Update stubinfo for py.typed and removed packages (#12959)

https://github.com/python/typeshed/pull/8042
https://github.com/python/typeshed/pull/8043
http...

132b8e527730b654a3f3d04684bebc9daff6cabd authored over 2 years ago by Shantanu <[email protected]>
[mypyc] Foundational work to help support native ints (#12884)

Some IR and codegen changes that help with native int support.

This was split off from a bran...

ddbea6988c0913c70ed16cd2fda6064e301b4b63 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Support inferring Unpack mixed with other items (#12769)

The main substance here modifies mypy/constraints.py to not assume that
template.items has leng...

9ccd081550010700341a46f0e08b8954e5beef70 authored over 2 years ago by jhance <[email protected]>
Raise minimum filelock version (#12960)

This is the version of filelock that includes py.typed

Co-authored-by: hauntsaninja <>

3833277fc292c9d4a514337b244d146228f1776e authored over 2 years ago by Shantanu <[email protected]>
Improve handling of overloads with ParamSpec (#12953)

9b4bce9065cbef6185fbc77f2849b63dc9e5e293 authored over 2 years ago by Alex Waygood <[email protected]>
Fix crash on redefined class variable annotated with `Final[<type>]` (#12951)

c3e32e33b37b13d08182b71dedba5c184e4ee216 authored over 2 years ago by Alex Waygood <[email protected]>
Update badge for build status (#12941)

7e38877750c04abfd436e6ad98da23d6deca4e8f authored over 2 years ago by Jingchen Ye <[email protected]>
Fix sidebar logo not loading in HTML docs (#12939)

The mypy logo wasn't loading on https://mypy.readthedocs.io/ because
it's referenced via an htt...

9611e2d0b1d9130ca1591febdd60a3523cf739eb authored over 2 years ago by Hal Blackburn <[email protected]>
Fix bug in constraints solver regarding `ParamSpec` upper bounds (#12938)

Fixes #12930

8153e47b45247c81ba9792ab46ab788513613f6b authored over 2 years ago by Alex Waygood <[email protected]>
[mypyc] Support type checking native ints (#12881)

Add minimal support for type checking native int types.
Currently `mypy_extensions.i32` and `m...

9a35fdc94c71f6c427624b9b4d51f7495cbb97f9 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Treat generators with await as async. (#12925)

Treat generators with await as async.

d21c5abcfba7cbae4398bdc075471e2ecc565e1d authored over 2 years ago by jhance <[email protected]>
[mypyc] Simplify code generated for SetAttr and non-pointer type (#12916)

Previously we sometimes generated an if statement with an empty body.

1636a0549670e1b75e2987c16ef26ebf91dfbde9 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Remove failing test on Python 3.11 (#12917)

asyncio.coroutine has been removed. I don't think this test case is
particularly useful.

Co-...

c2055280ab8f41382a584dc186099755b3cf014e authored over 2 years ago by Shantanu <[email protected]>
mypy_primer: report lines truncated (#12910)

Co-authored-by: hauntsaninja <>

0628e09ede4c81b913e859c750c581fbb85fa481 authored over 2 years ago by Shantanu <[email protected]>
Search sys.path for PEP-561 compliant packages (#11143)

Closes #5701

This replaces the old hand crafted search code that was more fragile.

2004ae023b9d3628d9f09886cbbc20868aee8554 authored over 2 years ago by Ashley Whetter <[email protected]>
Run dataclass plugin before checking type var bounds (#12908)

The plugin may add attributes that are needed to perform the bound
check.

Fixes #12876.

b07018cd024cc9d15d7fc977148c2adb5c3e5527 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Fix docs CI, formatting in command_line.rst (#12905)

35b4d8a0279e91ef6cc0db126844ddcf263b161f authored over 2 years ago by Erik Kemperman <[email protected]>
Make PEP561 tests opt-in (fix #12879) (#12883)

2051024c07cd361352e081884db0a061221a9aab authored over 2 years ago by Erik Kemperman <[email protected]>
CONTRIBUTING.md: improve setup docs, especially on Windows (#12898)

568b98a6f08205cd364a2511f8c8873f67e8b879 authored over 2 years ago by Alex Waygood <[email protected]>
stubtest: revert to allow mixed stubs and inline types, add test (#12896)

Reverts #12889

Co-authored-by: hauntsaninja <>

74b35bef35ad5a7b1aa635f52ffcfd850eadc589 authored over 2 years ago by Shantanu <[email protected]>
stubtest: do not treat py files as source for mypy definitions (#12889)

Authored by @KotlinIsland

Co-authored-by: KotlinIsland <[email protected]>

f08c57eb1cf16bb3fb999323bd3f139bd178fd10 authored over 2 years ago by Shantanu <[email protected]>
stubtest: add error summary, other output nits (#12855)

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

e661890c5bbf2dbfa72d59f7a6c182531b2c2ae6 authored over 2 years ago by KotlinIsland <[email protected]>
Put filelock around PEP 561 tests (fixes #12615) (#12857)

Fixes #12615.

As discussed in the linked issue, this PR would put a filesystem-based lock aro...

07edc92b71918f8975357b98c2df96a7a2f2aead authored over 2 years ago by Erik Kemperman <[email protected]>
[mypyc] Replace integer floor division by a power of two with a shift (#12870)

In a microbenchmark right shift was a bit faster.

d3ef642a0c2cc5b4784c2c632cee9bdcfa10e8b2 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Fix crash with nested attrs class (#12872)

Fixes #12868.

0054046c8c147a5190769bde21eb08615c16038e authored over 2 years ago by Jukka Lehtosalo <[email protected]>
stubtest: check typevar and paramspec (#12851)

Came up in #12825

b55dcf534c07eb4d25bbbf7f5ba67f5edf5d0a92 authored over 2 years ago by Shantanu <[email protected]>
[mypyc] Clean up support for debugging mypyc runtests (#12849)

Add a --mypyc-debug option to pytest that compiles a test normally and
then runs the resulting ...

4024748bff83237dbbe7da4750fe4c6e993af235 authored over 2 years ago by pranavrajpal <[email protected]>
Disallow assignments to awaited coroutines that do not return (#12853)

Resolves #12837

Co-authored-by: hauntsaninja <>

87e73feb0ac85d9d0d55ad4e367876d0c7fbe0a2 authored over 2 years ago by Shantanu <[email protected]>
[mypyc] Use PyObject_CallNoArgs and PyObject_CallOneArg (#12862)

Use PyObject_CallNoArgs and PyObject_CallOneArg to replace
PyObject_CallFunctionObjArgs in lib...

405efd23e483c214cb1293700ef2008aacf8e2ca authored over 2 years ago by 97littleleaf11 <[email protected]>
Friendlier errors for PEP 612 (#12832)

Co-authored-by: hauntsaninja <>

24ef8d06a1edad9074990624dd6d955a9e0c0561 authored over 2 years ago by Shantanu <[email protected]>
Sync pythoncapi_compat.h (#12859)

291c39d5587d96b8f42fcebb3a6aa65e9eff1276 authored over 2 years ago by 97littleleaf11 <[email protected]>
[mypyc] Generate smaller code for casts (#12839)

Merge a cast op followed by a branch that does an error check and adds a
traceback entry. Since...

040f3ab64a86efcf7093ada1b13842e56715f243 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Fix Python 3.11 C API errors (#12850)

Closes mypyc/mypyc#931
Closes mypyc/mypyc#923

Related CPython modification:

python/cpytho...

c8efeed44d4c90cc05cf196f6315410fda468d70 authored over 2 years ago by 97littleleaf11 <[email protected]>
[mypyc] Borrow even more things (#12817)

Borrow operands of tagged integer operations to reduce the number of
incref/decref operations (...

3c0409203a59eccb0e04caca7bef97c3e1e83ba7 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Use async def in pythoneval tests (#12834)

Co-authored-by: hauntsaninja <>

c986e54124b967587fbc674029ebe503c75d3a60 authored over 2 years ago by Shantanu <[email protected]>
stubtest: add --version (#12852)

Suggested in #12825

Co-authored-by: hauntsaninja <>

16d27a2628ef8837f8d180c1e9d248d4c3f2fe4c authored over 2 years ago by Shantanu <[email protected]>
[mypyc] Remove unnecessary max call for python version (#12848)

We don't support running on Python 3.5 or lower anymore, so the max call
is unnecessary because...

205d256584f16013602c71a4696bbaa356942fb8 authored over 2 years ago by pranavrajpal <[email protected]>
stubtest: allow ellipsis as default argument (#12838)

Resolves #12819

19e9f2136fd46c662f1066a4894edf48173942f4 authored over 2 years ago by Shantanu <[email protected]>
Run Python 3.11 tests in CI (#12833)

Co-authored-by: hauntsaninja <>

9d63fa52e335bca8322948bb2aedf6253e1df4bb authored over 2 years ago by Shantanu <[email protected]>
Bring back type annotation support of dunder methods in stub generator (#12828)

Fixes #12717

f19a711eae747e2e5525bf0b0baaa3d3ae972fbd authored over 2 years ago by Fabian Keller <[email protected]>
fix: "variable arguments" error wording (#12827)

Fixes #12508

927a9ba05d7e1ca495c62e555b937e74a01c4e57 authored over 2 years ago by Ramazan Elsunakev <[email protected]>
FindModuleCache: optionally leverage BuildSourceSet (#12616)

Given a large codebase with folder hierarchy of the form

```
foo/
company/
__i...

a6166b2f7e8e4cf9d176107277da223e45c3a6a1 authored over 2 years ago by Hugues <[email protected]>