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
Description
See mypyc/mypyc#893
refs #5599
This change allows to catch this error by making all Enum members
implicitly Fin...
dde8fd859b5754a954b38e1f65529ab54a31a3f6 authored about 3 years ago by 97littleleaf11 <[email protected]>
Partially fixes https://github.com/mypyc/mypyc/issues/796
This PR forces the computation of s...
47b22c5485852faaaa39389744b524dcb0111593 authored about 3 years ago by Sara Sinback <[email protected]>6b9cc4774f7dbd556a655071800a8e17e368282b authored about 3 years ago by Nikita Sobolev <[email protected]>
Closes #11487
Refs #11482
Refs #10801
Closes #8231
When type of index expression (e.g. `foo[bar]`) is analyzed and left
expression...
4669929f34d671c1081aba3d7f4751335a2879ea authored about 3 years ago by Nick Crews <[email protected]>
Found via `codespell -q 3 -S ./mypyc/external/googletest -L alo,ans,asend,ba,bre,dne,fo,haa,ist,...
f194551e372c0be400d094f7d0291b9aae554142 authored about 3 years ago by luzpaz <[email protected]>### Description
Closes https://github.com/python/mypy/issues/3673
Adds a trivial for-loop ...
2907a4dea939e20ff39ef7d9ff85ae1a199a0ee8 authored about 3 years ago by 97littleleaf11 <[email protected]>4e2f4ff0ecdfc9bd8c433d5e2e92468e5676dc56 authored about 3 years ago by Shantanu <[email protected]>
Fixes #11222
0483e15834c49adca53f5a4d632b165b6add9327 authored about 3 years ago by Imad Eddine Rezgui <[email protected]>Closes #11482
5bba0f384b4ebb5fcadc76a0778946fe4d88c4da authored about 3 years ago by Nikita Sobolev <[email protected]>d41e34a0c518c181b341390b5d9097c0e5b696b7 authored about 3 years ago by Ethan Leba <[email protected]>
871ec6ba85afe6a7a88caa6f831efba46db55f25 authored about 3 years ago by Nikita Sobolev <[email protected]>
a2cc1697ae1f60c9bfd5d39eb6c8c031955751a0 authored about 3 years ago by Nikita Sobolev <[email protected]>
Fixes #11473
2db0511451ecf511f00dbfc7515cb6fc0d25119c authored about 3 years ago by Infinil <[email protected]>Closes #11160
fbf21882087117135cf4b0a1bfa0c140e538726e authored about 3 years ago by Nikita Sobolev <[email protected]>Also remove unused function.
06cd5037c94ddba0e1fb5f4a86a5c5b3fb3f844c authored about 3 years ago by Nikita Sobolev <[email protected]>This is a follow up from https://github.com/python/mypy/pull/11444
045be8291c919c851e4417f50db395c2a92fd013 authored about 3 years ago by Ethan Smith <[email protected]>76406642694b0900a54d79e2800b2c364101d47c authored about 3 years ago by Dimitri Merejkowsky <[email protected]>
* Introduce basic ir analysis checks
Adds a new module for performing analysis checks on ir a...
ad7e35349c13b110cbba8981953f7073084b0ecd authored about 3 years ago by jhance <[email protected]>Related to #6578.
builtin_type could be totally replaced with named_type after #11332.
Also...
It now has a better API for that. Change `copy()` -> `clean_copy()`.
1f4e10eb5aa5de5725d5fa44aa862b56ad45bd7a authored about 3 years ago by Nikita Sobolev <[email protected]>cd75e5b5e8f16b236be0065e581a957ccba85781 authored about 3 years ago by Tushar Sadhwani <[email protected]>
The double import should be unnecessary because the bug it is talking
about was fixed by #10550.
Closes #10949
9cbd2103abbc2afb518bbfe727b7c3e7bcd55f3a authored about 3 years ago by DetachHead <[email protected]>This flag may be set to `True` if there are tricky forward references.
Co-authored-by: Ivan L...
e324460c73404fcfb19e920cdb6f415979fb803e authored about 3 years ago by Ivan Levkivskyi <[email protected]>Also change typing.Tuple to tuple, typing.Dict to dict, etc.
5703becbbe9be5006ed0d2d998dd4a793f1aedd0 authored about 3 years ago by Nick Crews <[email protected]>The initial implementation was not very careful, so I only keep the covariant part, while other ...
99559c050a392f21bbb3369f1d090d1d2170f5f1 authored about 3 years ago by Ivan Levkivskyi <[email protected]>dda64dbfae2b1cfc02a6abf3101bf1cf48640017 authored about 3 years ago by DetachHead <[email protected]>
This was added in #11419 to fix #11412
However, the presence of this file also configured myp...
62b4091e9b70283e080ac33d02092349a8456227 authored about 3 years ago by Shantanu <[email protected]>Closes #11398
Now cases like
```python
from typing import Type
class MyMetaClass(type...
bddc8bf2d4c5cc8ed88dac338860891f21569eed authored about 3 years ago by Nikita Sobolev <[email protected]>0ec868fe778c57b52f6df54f54eb19616e1d6ba2 authored about 3 years ago by Nikita Sobolev <[email protected]>
8b9ade2d5b11d9b7e0ec3443e5744adf6af1b784 authored about 3 years ago by Nikita Sobolev <[email protected]>
Resolves #11412
06c7433f808cc635178d59bcb4f2449234280ab7 authored about 3 years ago by Nikita Sobolev <[email protected]>Closes #11331
e9c7e1007b724becec9d6a3e5eacfdca69c0c9fc authored about 3 years ago by Nikita Sobolev <[email protected]>Closes #9927
68047f90bc4f140a717a4dd64ba762003122b20d authored about 3 years ago by Nikita Sobolev <[email protected]>Closes #10857
63c414abae02c9afaebe9d0d183aeb911de1807c authored about 3 years ago by Nikita Sobolev <[email protected]>Closes #11272
f4a21a4010405a3e98d0345de6c8f7ca955ce892 authored about 3 years ago by Nikita Sobolev <[email protected]>refs #2729
4ddc8fb00687473919e51c842b4cdbc479812d0a authored about 3 years ago by Nikita Sobolev <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/151f256051445f251d9966120f35d4819e433c...
This was prompted by #11403
Changes include:
- General streamlining of markdown
- Remove ou...
This was broken by #11320
Co-authored-by: hauntsaninja <>
4926bf41989047f63e40916cdc89436b4d1a5287 authored about 3 years ago by Shantanu <[email protected]>Fixes #11307
47d2ea5cedcc9cbf396c0d2ad637980b0090acdc authored about 3 years ago by Nikita Sobolev <[email protected]>Co-authored-by: hauntsaninja <>
3f43c830f37489045ef8fd8e21d232aef42b28ef authored about 3 years ago by Shantanu <[email protected]>Closes #9922
### Description
Extending the existing special case for `contextlib.contextm...
1bf701f82fe94a07cc61a9e683a1fe29a907dd53 authored about 3 years ago by Barnaby Shearer <[email protected]>76a7542e790561038b18e65e35054ef4ed671fa6 authored about 3 years ago by Tushar Sadhwani <[email protected]>
Adds a reference on how # type: ignore can be used.
Resolves #11354
8052c8d08f11b7894e0c07824ef772b38e525469 authored about 3 years ago by Tushar Sadhwani <[email protected]>
The result is an "OR" of all the patterns provided.
Should be fully backward compatible to exis...
In pip 21.3 the build argument is removed, so this uses an environment
variable to still work o...
This reverts commit caae446df867f60256f2876da807a99781c5b7be.
e942bc85b9a728e21feaaaf6f7d2da24651382cf authored about 3 years ago by Ethan Smith <[email protected]>caae446df867f60256f2876da807a99781c5b7be authored about 3 years ago by Ethan Smith <[email protected]>
A few lines change required to have mypy run on PyPy, to the extent that it
can run self-check...
Define a Github Action that can be used as a canonical way of running
mypy as part of Github CI...
Closes #11309
53c7bb2538c37b07843f834aa2f4eeb0b33c7a7f authored about 3 years ago by Nikita Sobolev <[email protected]>This is useful for Annotated, and crucial for downstream libraries like torchtyping.
9aaeef5f355509ef789dbcdca1f15793698a5960 authored about 3 years ago by Zac Hatfield-Dodds <[email protected]>Related to #6578
This PR replaces lookup_qualified with lookup_fully_qualified for SemanticAn...
9bd651758e8ea2494837814092af70f8d9e6f7a1 authored about 3 years ago by 97littleleaf11 <[email protected]>d807e097d142a88a48af93314d15ad87e41d2f19 authored about 3 years ago by Nikita Sobolev <[email protected]>
Closes #7764
a114826deea730baf8b618207d579805f1149ea0 authored about 3 years ago by 97littleleaf11 <[email protected]>f497645611b89a42cca7c5b7c81dbc66777cf6f9 authored about 3 years ago by Nikita Sobolev <[email protected]>
Adds comments for can_be_true and can_be_false. Deletes redundant redefinition of __slots__.
d3fe55ade4f03a98882574cd2b415a33de933e8d authored about 3 years ago by 97littleleaf11 <[email protected]>4c6dd24b803c484146bce13103f14112fac07c27 authored about 3 years ago by Nipunn Koorapati <[email protected]>
flake8 now correctly handles overloads
5f7eb8161bdeefcc526705a48b03115aa1e83a14 authored about 3 years ago by Shantanu <[email protected]>Prep for #9636
First test was failing because a was not a valid import (pkg.a was)
Second ...
6f122511b12269b84e1257c8d8d492609f1efe5a authored about 3 years ago by Nipunn Koorapati <[email protected]>
Two PRs landed and conflicted - #11262 and #11141
This fwd fixes the tests.
This only adds tests that show the current behavior when we provide a stub-only package for a su...
066da4d92af594d90420369f9af8cda2ca3b6c00 authored about 3 years ago by Nipunn Koorapati <[email protected]>Resolves #9404
Co-authored-by: hauntsaninja <>
df827c9d8926155b5a47d44f02a02b39823975f5 authored about 3 years ago by Shantanu <[email protected]>
Trying to fix https://github.com/mypyc/mypy_mypyc-wheels/pull/28,
not sure why other windows bu...
Closes #11287
8e01ad930015889ea8be1f26556fcc4e4d918e82 authored about 3 years ago by Nikita Sobolev <[email protected]>Closes #11294
332b712df848cd242987864b38bd237364654532 authored about 3 years ago by 97littleleaf11 <[email protected]>Co-authored-by: hauntsaninja <>
eeafe6b6945eb68eaab7552010c59102b4457be6 authored about 3 years ago by Shantanu <[email protected]>Co-authored-by: hauntsaninja <>
eba24b4c6dcac020fa0b8ced30e8f437d4218147 authored about 3 years ago by Shantanu <[email protected]>8cba3bcd42ce04a98233ab999d92bc901685e082 authored about 3 years ago by Shantanu <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/ca983cd319cb58b0a8fa3a086fad5e75332e0450
c22beb431a682330276aff2a84b4796abadf71b4 authored over 3 years ago by Nikita Sobolev <[email protected]>
* tests: make testAsync work with Python 3.10
The test would previously yield "DeprecationWar...
f42c8623189d3cf0a148169745d3d636aa25963d authored over 3 years ago by Louis Sautier <[email protected]>Closes #11248
f2978c3b1b23ea939db58332f94876b73bc01d65 authored over 3 years ago by Nikita Sobolev <[email protected]>Removes the redundant lookup funcs in fixup.py. Related to #4157.
* Removes lookup_qualified_...
15f23850f3104e92054f5d697535bacb7eefc980 authored over 3 years ago by 97littleleaf11 <[email protected]>e6b91bdc5c253cefba940b0864a8257d833f0d8b authored over 3 years ago by Nikita Sobolev <[email protected]>
Closes #11122
d0a41a03ee0c25cc711aa9110455c3695dd97069 authored over 3 years ago by Abdul Rehaman <[email protected]>It looks unused, maybe it is safe to delete it.
2aeb4db658daffe8a3ec5b02382d886808992736 authored over 3 years ago by Nikita Sobolev <[email protected]>
I've noticed several missing Final types here and there.
I've looked though the whole project a...
Co-authored-by: hauntsaninja <>
32448b88370f8327c390f4e21666065c87ca95e2 authored over 3 years ago by Shantanu <[email protected]>Partially solves #4157
d1d431630d967923a9562b4dff436a509c2acb8b authored over 3 years ago by 97littleleaf11 <[email protected]>Work on mypyc/mypyc#772.
Replace things like '5 + 8' with '13' during IR building. Also adds
...
This helps unblock #9636. With namespace packages, the
code to crawl upward would not stop anyw...
Also re-order docs and make them more greppable
Helps with e.g. complaints in #9944
Co-aut...
b75d9352d3c5e07c3045e2866900885c450d3741 authored over 3 years ago by Shantanu <[email protected]>edd7ce9e08b3c0240dd909d78b956ffb987f9fe4 authored over 3 years ago by Nikita Sobolev <[email protected]>
3ad69a08206790d378cb392a8a7d806e82287cca authored over 3 years ago by Nikita Sobolev <[email protected]>
For example `from a import B` should not find a namespace
package `a/b/`. Fix by using case awa...
This matters with namespace packages enabled - since an (otherwise) empty folder with
some .2 f...
So that mypy primer doesn't freak out on #9636
Co-authored-by: hauntsaninja <>
656bc7e311c71e55233f0797b1b51aca4a938bce authored over 3 years ago by Shantanu <[email protected]>Closes #10266
eb5e0869046ab881e0e487ba9e0befb38845c321 authored over 3 years ago by Nikita Sobolev <[email protected]>1b6f63b9fdf6f05a554974a470136c7623ad9ea2 authored over 3 years ago by Nikita Sobolev <[email protected]>
Co-authored-by: hauntsaninja <>
8f6225a408f337181d9260e06e7d16e5a9e9ca22 authored over 3 years ago by Shantanu <[email protected]>0a830481980bfc554ded61a3eaaaecde384a21e4 authored over 3 years ago by 97littleleaf11 <[email protected]>
492739692206f05347c6706cb982115446ba552a authored over 3 years ago by Nikita Sobolev <[email protected]>
The code in refine_parent_types() bailed out when it encountered
something other than a TypedDi...
Fixes #8925.
Consider the following narrowing (more realistically with TypedDicts),
and the ...