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 annotations in an example (#10351)

Changed the return type annotation for `__init__` from `int` to `None`

8e79a69465613549d8d2870d2410048c902c1cbb authored over 3 years ago by Reda Bouaida <[email protected]>
Run compiled tests on earliest Python version (3.6) (#10349)

Related: #10345

3bdef9fe6d401f3d2e0cacf4964bd315550c3394 authored over 3 years ago by Xuanda Yang <[email protected]>
Remove types-typing-extensions dependency (#10347)

This is due to https://github.com/python/typeshed/pull/5233

Co-authored-by: hauntsaninja <>

0d1155b9e1f1e4e7ff5291cebb649b7fe2ba3d13 authored over 3 years ago by Shantanu <[email protected]>
Sync typeshed (#10346)

* Sync typeshed

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

73f3d73dbe723691dddfba67ac7f0c89d7189865 authored over 3 years ago by Shantanu <[email protected]>
Stop running Python 3.5 in CI, run Python 3.9 with mypyc (#10345)

* Stop running Python 3.5 in CI

Python 3.5 always fails in CI these days
Linking https://git...

ba3578a9399da94be4b34d98d5330e6b4d5dd084 authored over 3 years ago by Shantanu <[email protected]>
Use double quotes in errors `Duplicate argument` and `Cannot assign multiple modules` (#10344)

887c1eb13c149a0b80588fb56fa601140390cc81 authored over 3 years ago by Dixith <[email protected]>
Use double quotes in Metaclass related errors (#10341)

001e4a75ed6510e0fc73f0fdc6f0920bd9492908 authored over 3 years ago by Dixith <[email protected]>
Use double quotes in "already defined" errors and others (#10335)

Also covers `is nonlocal and global`, `No binding for nonlocal` and
`is already defined in loc...

dd7209424d6c04177706aa4e12bb02cb8febe98d authored over 3 years ago by Dixith <[email protected]>
[mypyc] Add incref in CPyDict_SetDefault (#10334)

Closes mypyc/mypyc#831.

b367f26d5626f256f277907273c4bf06c410e3c4 authored over 3 years ago by 97littleleaf11 <[email protected]>
Make --explicit-package-bases invertible (#9969)

Closes #9968

This PR adds the inverse of --explicit-package-bases: --no-explicit-package-base...

2ac722ac7d844f4c5ae2f3c36f3470543cf01b11 authored over 3 years ago by Gustav Gränsbo <[email protected]>
Removes git-submodules artifacts (#10321)

8d57ffa817526fde7715da13246f72f1b1d62b60 authored over 3 years ago by Nikita Sobolev <[email protected]>
Simplify some Final annotations (#10316)

Related #10141

3fbe2185f3096d5ea0b23d6bbd0b68c5075cde90 authored over 3 years ago by Nikita Sobolev <[email protected]>
Fix crash for protocol classes, Hashable false negative (#10308)

Fix function `is_protocol_implementation` for quite similar protocol classes.
Fixes #9771

``...

c0490b4c2d2bc3f385c548089245c929ca4b0448 authored over 3 years ago by Christoph Tyralla <[email protected]>
Fixes Final docs (#10141)

There were several things to improve in Final docs:

1. For some reason it was `ID: Final[floa...

d7a999c3e9fc04fac8ca84077408b97c85d36dea authored over 3 years ago by Nikita Sobolev <[email protected]>
Check for AnyType after simplifying (#10174)

Closes #8296.

Check if types are AnyType instances after simplifying them.

3505adc757f984d63a384f5d2af1c53c2d95734f authored over 3 years ago by Kamil Turek <[email protected]>
fix variable annotation syntax (#10315)

Followup from #10255

eb73a2d802d745d224d82eebf586653f5c9f965d authored over 3 years ago by Jelle Zijlstra <[email protected]>
Issue an error when overriding typeguard with non-typeguard in subclass (#10300)

Closes #9928.

Issue an error about incompatible signature when trying to override typeguard m...

49cd412d98c56f0e313377bfc5517d8011a7d37a authored over 3 years ago by Kamil Turek <[email protected]>
[mypyc] Implement dict setdefault primitive (#10286)

Related issue: mypyc/mypyc#644

Add a new primitive for dict.setdefault().

Move some dict c...

f463a3921fcd5cb360c12a84650880a2a92e0566 authored over 3 years ago by 97littleleaf11 <[email protected]>
Use type(x) == T for type narrowing (#10284)

* Use type(x) == T for type narrowing

This makes mypy use expressions like type(some_expressi...

3cebc97181594d7ab359bf1d82509a16ae5f037d authored over 3 years ago by pranavrajpal <[email protected]>
Use double quotes errors in 'dont mix' and 'has no attributes' (#10296)

b049e6a9a34c484e44807cae9b41407c601706ce authored over 3 years ago by Dixith <[email protected]>
Add plugin for functools.total_ordering (#7831)

c5e4e0f5e818639c573fb7ab4f33eb237754c15c authored over 3 years ago by Ashley Whetter <[email protected]>
Update extending_mypy.rst (#10222)

Two things I have changed:
1. `get_function_signature_hook` was missing from docs, but it is de...

6fc5f38202ddc20c88534c6738d597d040f0e6f6 authored over 3 years ago by Nikita Sobolev <[email protected]>
Fix Generators typeshed test (#10255)

typshed mistakenly set itertools.count as a function while it is actually a class. Meaning that ...

b31122f12de69afe89b0562ab4750b0285949538 authored over 3 years ago by hatal175 <[email protected]>
Consider reversed operands order when comparing version info (#10288)

Closes #10264.

Consider reversed order of operands when trying to compare version info. When ...

1567e36165b00d532f232cb3d33d1faf04aaf63d authored almost 4 years ago by Kamil Turek <[email protected]>
[mypyc] Only lookup vtable indices if needed for method call emits (#10290)

The vtable index is only needed for when we actually go through a
vtable lookup. I don't believ...

ee05821bb20cd47ed0404117f9a77e87da9d10b6 authored almost 4 years ago by Raphael Gaschignard <[email protected]>
[mypyc] Optimize truth value testing for strings (#10269)

Add a new primitive to check for empty strings.

Related to mypyc/mypyc#768.

1e96f1df48a6e06ba598fa8230b96671b206cba0 authored almost 4 years ago by pranavrajpal <[email protected]>
Use double quotes errors 'in async function, 'Cannot determine type of' and 'syntax error in type comment' (#10282)

* in async function - double quotes

* Cannot determine type of - double quotes

* syntax er...

e46aa6df6126cf47bea97bf9f94d7cba093d0103 authored almost 4 years ago by Dixith <[email protected]>
Use double quotes errors 'is not defined' and 'Cannot instantiate' (#10278)

2a43cb95a194fa5d43d2e094be4be8e88e48f3ef authored almost 4 years ago by Dixith <[email protected]>
[mypyc] Faster set creation with generator expression (#10261)

Closes mypyc/mypyc#771 and #9707.

Changes:

* Move code from tranform_set_comprehension to ...

2787d49633e732aa34de61c9ff429416ea10c857 authored almost 4 years ago by 97littleleaf11 <[email protected]>
stubtest: check overloads are functions, don't early return (#10258)

Fixes #10254

Co-authored-by: hauntsaninja <>

bab4e22f1d0207ebc17ee3388d2434484aa998f4 authored almost 4 years ago by Shantanu <[email protected]>
[mypyc] Add a primitive for loading bool type (#10257)

Closes mypyc/mypyc#821.

341bf19f03504af911743b2279ecfdd3f21e66db authored almost 4 years ago by 97littleleaf11 <[email protected]>
docs: fix RST markup (#10256)

This works for me locally, but the version on ReadTheDocs seems broken

Co-authored-by: haunts...

f00bb49066810589b5bb122425381ef833fe471b authored almost 4 years ago by Shantanu <[email protected]>
[mypyc] Support class-based TypedDict definitions (#10226)

These need to be compiled as non-extension classes.

Also mypy has a special internal represen...

5496bf9b657c12ef14e5e3cab429f22e247b9a41 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Don't coerce types checked with isinstance (#811) (#10245)

Prevent the coercion of things whose types are checked with isinstance
to other types - such co...

ac6192193f9b533067d2a74dc73faacd3b06b4ac authored almost 4 years ago by Sara Sinback <[email protected]>
[mypyc] Simplify argument parsing in legacy wrapper functions (#10234)

Only include the argument parsing functionality we need.

This speeds up the call_type_from_in...

fcbb2dd6f48196524be2d89d592ca1af190bb389 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Fix typo (#10247)

Small typo in the get_function_hook docstring

797544d8f97c478770eb178ba966cc7b1d0e6020 authored almost 4 years ago by Kyle Verhoog <[email protected]>
[mypyc] Faster creation of a tuple from list/tuple (#10217)

Resolves mypyc/mypyc#769.

b594e6ba4d518adc163e70c5ccaf92ce936869a7 authored almost 4 years ago by 97littleleaf11 <[email protected]>
Use double quotes in error message "is not a valid TypedDict key" (#10235)

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

641919f9496c8c62b9f45e7ec8402162667b7a11 authored almost 4 years ago by Dixith <[email protected]>
Use double quotes in "Revealed type is" error message (#10232)

Part of #7445

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

764f9265df723ab5c610faace9e995d2b30816f0 authored almost 4 years ago by Dixith <[email protected]>
Refactor push type map (#10175)

push_type_map was re-implemented in-place for check_for_comp

6ad3ea13bea053bd32ea82431ed0180bcfd7a97b authored almost 4 years ago by Nikita Sobolev <[email protected]>
Use double quotes in 'object is not iterable' error message (#10231)

bfc67b6129b3f82a7a6e92eddeedbcfb70440a31 authored almost 4 years ago by Dixith <[email protected]>
[mypyc] Simplify generated C by omitting gotos to the next block (#10230)

This reduces the number of lines in the generated C when compiling
the richards benchmark by ab...

dc08ab6d87ece3342df667c4763cadde5048a488 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Box initializers of final variables when required (#10229)

Fix a compile error when an unboxed initializer is used for a boxed
final variable.

I had to...

20e8e6896f21d85675c6a3ebafde1742d895535c authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Fix compilation of unreachable expressions (#10228)

Unreachable generator expressions are still failing, but most others work.

Fixes mypyc/mypyc#...

8aa385ede804df6f39701d8593a77bd7c242b087 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Ignore type error in conf.py used for doc generation (#10227)

Silence an awkward mypy error if somebody tries to type check this
file.

d3ba89680d82cb7de97a755f3c147d4cd1af4d28 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Fix mypyc failing to compile on CPython 3.10.0a6 (#10202)

* Fix mypyc failing to compile on CPython 3.10.0a6

_PyObject_HasAttrId() has been removed in
...

ac66403cb4374b858786350b96e7f5972db84bcd authored almost 4 years ago by Adrian Freund <[email protected]>
Add optional CI run against python nightly (#10213)

This commit adds an optional CI run with python nightly. It is allowed to allow run failures, so...

4ecbd4d775489f42d37a26f41f3a918c21084b48 authored almost 4 years ago by Adrian Freund <[email protected]>
Only import distutils if it is needed (#10203)

distutils is deprecated in python 3.10, so we only import it if it is
needed, which should only...

020998df3014d5d026deefadea80f348af3561f0 authored almost 4 years ago by Adrian Freund <[email protected]>
Recombine complete union of enum literals into original type (#9063) (#9097)

Closes #9063

a503132749eb179eec8d1e97f6b8e372daab6ce7 authored almost 4 years ago by Ethan Leba <[email protected]>
Fix strconv not displaying False and possibly other falsy values (#10196)

This fixes strconv not displaying False and possibly other falsy values.
I ran into this probl...

f0a2c9f7f11da5c1d5fb1041e757591010e586be authored almost 4 years ago by Adrian Freund <[email protected]>
[mypyc] Small documentation updates (#10184)

Here are a few updates/fixes after a read through the mypyc docs.

For the corresponding primi...

28034cccceb7aacf3d17cb0492e99bb4efda5158 authored almost 4 years ago by Thomas Johnson <[email protected]>
Make Python 2 support an extra (#10183)

Resolves #10124

Co-authored-by: hauntsaninja <>

4adb5e4631916ea0dee625cdfaf18ac7ef4a1c58 authored almost 4 years ago by Shantanu <[email protected]>
[mypyc] Updates to introduction in the documentation (#10179)

Improve clarity and add a comparison against Cython.

474fd5c474d08818fd35764816f3cb1046ed6c6a authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Update link to the mypyc repository

de7514de2d052a269b09f7c6a04c9a45791df6e3 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Add pointer to the new mypyc README (#10180)

This README will go away once all the useful content is covered in the
new README or the main m...

918aaa1245f1406d13b5cfeedc70ace24e02d502 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Various small doc updates (#10177)

Update the index page. Configure mypyc version in conf.py.

dd2a628329dc5a33e5f1356a02ec369fb11daad5 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Make mypyc docs use the same theme as mypy docs (#10176)

Consistency is good.

Work on mypyc/mypyc#807.

7e9b57ce6cee69e2b05c29f089a223aa46774e29 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Empty commit to trigger builds

152de165f8c52f95436a77f107cdbc1e607a9a5b authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Use vectorcalls to call Python objects (#10153)

The vectorcall APIs can make calls to callable Python objects
significantly faster when using k...

7b7cce387dab99416d76fd4b10061dac3f7c1374 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Add UnionType support when incompatible protocol happens (#10154)

Fix #10129

c8bae06919674b9846e3ff864b0a44592db888eb authored almost 4 years ago by 97littleleaf11 <[email protected]>
Update documentation links (#10159)

Co-authored-by: hauntsaninja <>

7241b6ce8fafd7dda6b50a7e412cdbcd9be03436 authored almost 4 years ago by Shantanu <[email protected]>
Fix recently added enum value type prediction (#10057)

In #9443, some code was added to predict the type of enum values where
it is not explicitly whe...

0aa2cafc0686b8b8543c44dd2b879e84a2f31e45 authored almost 4 years ago by Paddy <[email protected]>
[mypyc] Foundational support for tuple literals (+ None and bool), try 2 (#10148)

This adds back #10041 that was reverted because of failing Windows builds.

The Windows issue ...

98c2c1289ff76570457fc547ae254293aea6a019 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
[mypyc] Add LoadLiteral and use tables to construct and store literals, try 2 (#10147)

This is my second attempt to land this. See the first attempt (#10040) for the details.

Previ...

5eecc407c8e2e8ec9ce3cea33972776d15af25d5 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Add Apple Silicon support when building wheels (#10145)

related to #10114

5161d93950cdb6daa5a13559b64e9e016ab78183 authored almost 4 years ago by 97littleleaf11 <[email protected]>
stubgen: fix invoking mro() (#10138)

Fixes #10137

72ac2cee910ca61bfdf449217328b6d10b45d378 authored almost 4 years ago by Gen Xu <[email protected]>
GitHub actions house-keeping (#10142)

Updates two actions to the latest versions (`v1` is outdate as for now), changes how submodules ...

3c4f01947bf63db467f99dda43d42198345291cb authored almost 4 years ago by Nikita Sobolev <[email protected]>
Adds ability to have subclasses for NodeVisitor and TraverserVisitor (#10125)

Currently a very important tool - which `NodeVisitor` definitely is - is not available to be use...

effd970ad1e8bb09fd2a18634339e1d043a83400 authored almost 4 years ago by Nikita Sobolev <[email protected]>
[mypyc] Support str.replace (#10088)

Support str.replace primitive

15bd486a67a3214fdb854ba2f1d6d524113da6c1 authored almost 4 years ago by 97littleleaf11 <[email protected]>
Speed up processing of new files in daemon by caching ASTs (#10128)

Processing newly installed stub files, in particular, could be quite slow incrementally
in mypy...

4827f3adf0acebd2dea7cc0dbf358b8daede6694 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Migrate runtests.py from os.system to subprocess (#10121)

9cbf4c0da8f83efd0ba82a91e180b6e96dd15f69 authored almost 4 years ago by Adrian Freund <[email protected]>
Implement dict copy primitive (#9721)

Implements dict copy primitive for improved performance.

Related ticket: mypyc/mypyc#644

497556f466dcda90d850b23e86c55ec4082be3f5 authored almost 4 years ago by vsakkas <[email protected]>
Add narrowing and closures to common issues (#9956)

This one is on our issue tracker's greatest hits.
Here's the issue I usually link: #2608

Co-...

8780d45507ab1efba33568744967674cce7184d1 authored almost 4 years ago by Shantanu <[email protected]>
test-data samples: use WindowsError on Windows only (#10115)

19ee71a2a77404db9784e0bc168c010ab9968876 authored almost 4 years ago by Akuli <[email protected]>
[mypyc] Add missing header declarations for list operations (#10111)

These could break a multi-file build, but monolithic builds were fine.

5911a2cbad458b72164c5f0a269330211de1d50d authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Revert "[mypyc] Add LoadLiteral and use tables to construct and store literals (#10040)" (#10113)

This reverts commit 7ec1455821373ee394afc824f18c53bff1b6923b.

Looks like this broke Windows w...

b07c564043328ded5686d1aac4d7d3e5c8a5bfb0 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Revert "[mypyc] Foundational support for tuple literals (+ None and bool) (#10041)" (#10112)

This reverts commit 047e427ff960aca4565897e5e77324fc7660ff10.

Looks like that the new literal...

9da0ce163befe446dfebb024898d64a1664cab5f authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Revert "Use multi-file builds on Windows (#10110)"

This reverts commit 7ab647d91a0d59244dcdc10f21ca35f11fa382e1.

7ec44526372cb6afab7c773d93fbb4d235b16c06 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Use multi-file builds on Windows (#10110)

This may reduce memory use and thus fix the builds.

7ab647d91a0d59244dcdc10f21ca35f11fa382e1 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Reduce the size of the build by not compiling parts of stubgen (#10107)

This might fix the out-of-memory errors we are getting when
building Windows wheels. In any cas...

645ea62c1acf0c1751e698651ba1d6a6b64ef254 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Empty commit to re-trigger builds

22528cfafcc11d5e0f6f0cfbc8771bbeeb19d9b8 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
declare `Py_ssize_t i` outside of loop initialization (#10091)

Fixes mypyc/mypyc#800

I believe this is the only instance of a variable declaration inside a ...

dc4f0af163ed3748311115fd896494262c0dc644 authored almost 4 years ago by Thomas Johnson <[email protected]>
Revert "Use a 64-bit C compiler on Windows to build wheels (#10097)"

This reverts commit d308210eb2f8877f74a5cd318381e9e78d243dee.

683320c1ec5b6744f4885659471ec9049d607193 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Use a 64-bit C compiler on Windows to build wheels (#10097)

This will hopefully fix out of memory errors.

Work on #10074.

d308210eb2f8877f74a5cd318381e9e78d243dee authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Empty commit to re-trigger builds

09bc50fec95bd7ac754e8d91dbb8a60fd63cc7db authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Add Python script to build wheels using cibuildwheel (#10096)

The contents are extracted from the current GitHub action definition:
https://github.com/mypyc/...

4c3e2506a476f759b64628ef7297175e400aa917 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Don't try to follow imports to encodings.* (#10094)

`encodings` uses module-level `__getattr__`. By not trying to follow
imports to the submodules...

2738c73695e2d2f963fbe2a0056329c43a0f6e58 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Speed up case sensitive is-file check in file system cache (#10093)

This speeds up resolving imports somewhat.

Add fast paths to `isfile_case`. On Linux we skip ...

a21e5e18df2b77c82462be98dce32027fce2e61d authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Use fast path for finding modules in mypy daemon (#10095)

The skipped check is pretty slow, and it's not useful when following
imports to suppressed modu...

3412fab840125d27f582e4692bc473a2abab806d authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Fix following stub imports in daemon when using --follow-imports=skip (#10092)

Find added stubs in daemon when using --follow-imports=skip. Previously
it was often necessary ...

07edb847c380fa6cb2fa4041888c87a37e5d0d0d authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Empty commit to re-trigger builds

4f1587f69f7e2714fbb6030624750872a4cbe573 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Use relative paths when matching exclude (#10078)

Co-authored-by: hauntsaninja <>

7eecc40f0626095f917b8295ab9bba4498f40f58 authored almost 4 years ago by Shantanu <[email protected]>
test_find_sources: check cwd for non root paths (#10077)

Co-authored-by: hauntsaninja <>

99f4c5c81210d19f205f626f9cbac371399e1707 authored almost 4 years ago by Shantanu <[email protected]>
use sys.executable instead of `python3` for --install-types (#10086)

88dde657fedecf17e15222ad4b685b0aeddcc423 authored almost 4 years ago by Anthony Sottile <[email protected]>
Fix test_find_sources when run under site-packages (#10075)

This was failing during wheel builds because we run the tests after
installation (under `site-p...

951728489b30d7cbb9ff1fe7d2f096c65f842761 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
[stubgenc] Render a bit better stubs (#9903)

* [stubgenc] Render classes before functions

Functions may depend on class definitions, there...

6d7beb41768506eeb263c9c14574c93010cd2674 authored almost 4 years ago by Sergei Izmailov <[email protected]>
Empty commit to re-trigger builds

2a1578a9220162b769648ce725c6b699c5b46986 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Use double quotes in all error messages (#10053)

Fixes #7445

Changed single quotes to double quotes in all error message. Changed test cases t...

96cae4b1b0c2a4298ca8cb3e86d8dced30c9fff2 authored almost 4 years ago by Prasanth Chettri <[email protected]>
Add build-requirements.txt to MANIFEST.in (#10071)

e609a31f30326ef673b4f99ac43c09c3ed4df950 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Bump version to 0.820+dev (#10070)

26b9c1b113aac9f2440a793d6278f3ffdd176a24 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>