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

move mypyc to console_scripts (#11494)

Description
See mypyc/mypyc#893

57eb9798da8a02c7151881ddc778d30853758d41 authored about 3 years ago by 谭九鼎 <[email protected]>
Makes Enum members implicitly final, refs #5599 (#10852)

refs #5599

This change allows to catch this error by making all Enum members
implicitly Fin...

fdcda966023840b854567df0643091653b179210 authored about 3 years ago by Nikita Sobolev <[email protected]>
Use `format_type` for `msg.type_not_iterable` (#11490)

dde8fd859b5754a954b38e1f65529ab54a31a3f6 authored about 3 years ago by 97littleleaf11 <[email protected]>
[mypyc] Use optimized implementation for builtins.sum (#10268)

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]>
Microrefactoring: "not callable" error message is now a const (#11491)

6b9cc4774f7dbd556a655071800a8e17e368282b authored about 3 years ago by Nikita Sobolev <[email protected]>
Adds `slots=True` support for `@attr.s`, refs #11487 (#11489)

Closes #11487
Refs #11482
Refs #10801

b1c438d20971fcfaad011153763a60e8cb5c4054 authored about 3 years ago by Nikita Sobolev <[email protected]>
Fix type inference for index expression with bounded TypeVar (#11434)

Closes #8231

When type of index expression (e.g. `foo[bar]`) is analyzed and left
expression...

231f7cfa7975d1483b12802111d51e0500813df9 authored about 3 years ago by Ilya Labun <[email protected]>
Replace `List[X]` with `list[X]` in docs (#11450)

4669929f34d671c1081aba3d7f4751335a2879ea authored about 3 years ago by Nick Crews <[email protected]>
Fix typos (#11498)

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]>
Check duplicate bases when defining TypedDict (#11485)

### Description

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

Adds a trivial for-loop ...

2907a4dea939e20ff39ef7d9ff85ae1a199a0ee8 authored about 3 years ago by 97littleleaf11 <[email protected]>
semanal: fix module_public in the presence of getattr (#11411)

4e2f4ff0ecdfc9bd8c433d5e2e92468e5676dc56 authored about 3 years ago by Shantanu <[email protected]>
stubgen: preserve string arguments in annotations (#11292)

Fixes #11222

0483e15834c49adca53f5a4d632b165b6add9327 authored about 3 years ago by Imad Eddine Rezgui <[email protected]>
Adds `slots=True` support for `@dataclass` (#11483)

Closes #11482

5bba0f384b4ebb5fcadc76a0778946fe4d88c4da authored about 3 years ago by Nikita Sobolev <[email protected]>
Allow booleans to be narrowed to literal types (#10389)

d41e34a0c518c181b341390b5d9097c0e5b696b7 authored about 3 years ago by Ethan Leba <[email protected]>
Fix bug with `param_kind` compare with `ARG_NAMED` (#11447)

871ec6ba85afe6a7a88caa6f831efba46db55f25 authored about 3 years ago by Nikita Sobolev <[email protected]>
Microrefactoring: no need to define possibly unused var in `typeanal.py` (#11481)

a2cc1697ae1f60c9bfd5d39eb6c8c031955751a0 authored about 3 years ago by Nikita Sobolev <[email protected]>
Fix typo in CONTRIBUTING.md (#11474)

Fixes #11473

2db0511451ecf511f00dbfc7515cb6fc0d25119c authored about 3 years ago by Infinil <[email protected]>
Adds support for `NamedTuple` subtyping (#11162)

Closes #11160

fbf21882087117135cf4b0a1bfa0c140e538726e authored about 3 years ago by Nikita Sobolev <[email protected]>
Now all `.clean_copy()` calls do not use `.disable_count = 0` (#11459)

Also remove unused function.

06cd5037c94ddba0e1fb5f4a86a5c5b3fb3f844c authored about 3 years ago by Nikita Sobolev <[email protected]>
Fix small error in pyinfo.py (#11468)

This is a follow up from https://github.com/python/mypy/pull/11444

045be8291c919c851e4417f50db395c2a92fd013 authored about 3 years ago by Ethan Smith <[email protected]>
Don't look in user site packages when using a virtual env (#11444)

76406642694b0900a54d79e2800b2c364101d47c authored about 3 years ago by Dimitri Merejkowsky <[email protected]>
[mypyc] Add a simple irchecking analysis system (#11283)

* 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]>
Discard deprecated `builtin_type` (#11343)

Related to #6578.

builtin_type could be totally replaced with named_type after #11332.
Also...

5bd2641ab53d4261b78a5f8f09c8d1e71ed3f14a authored about 3 years ago by 97littleleaf11 <[email protected]>
Changes how errors are disabled in `visit_comparison_expr` (#11451)

It now has a better API for that. Change `copy()` -> `clean_copy()`.

1f4e10eb5aa5de5725d5fa44aa862b56ad45bd7a authored about 3 years ago by Nikita Sobolev <[email protected]>
Refactor checker error messages (#10959)

cd75e5b5e8f16b236be0065e581a957ccba85781 authored about 3 years ago by Tushar Sadhwani <[email protected]>
Remove double import (#11452)

The double import should be unnecessary because the bug it is talking
about was fixed by #10550.

87319c228da2b82633d6a587876da3e8c9ef61ec authored about 3 years ago by pranavrajpal <[email protected]>
Add test for new union syntax on generic bounds (#11431)

Closes #10949

9cbd2103abbc2afb518bbfe727b7c3e7bcd55f3a authored about 3 years ago by DetachHead <[email protected]>
Clear type alias flag for assignments that are not aliases (#11446)

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]>
Use list[int] instead of typing.List[int] in generics.rst (#11377)

Also change typing.Tuple to tuple, typing.Dict to dict, etc.

5703becbbe9be5006ed0d2d998dd4a793f1aedd0 authored about 3 years ago by Nick Crews <[email protected]>
Fix crash on join of recursive types (#11433)

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]>
remove `$` from commands so the copy to clipboard button works (#11432)

dda64dbfae2b1cfc02a6abf3101bf1cf48640017 authored about 3 years ago by DetachHead <[email protected]>
Remove ReadTheDocs configuration file (#11429)

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]>
Now `__new__` in a metaclass must return a subtype of `type`, refs #11398 (#11420)

Closes #11398

Now cases like

```python
from typing import Type

class MyMetaClass(type...

bddc8bf2d4c5cc8ed88dac338860891f21569eed authored about 3 years ago by Nikita Sobolev <[email protected]>
Change mypy_primer Github Action name (#11422)

0ec868fe778c57b52f6df54f54eb19616e1d6ba2 authored about 3 years ago by Nikita Sobolev <[email protected]>
Properly check `*CustomType` and `**CustomType` arguments (#11151)

8b9ade2d5b11d9b7e0ec3443e5744adf6af1b784 authored about 3 years ago by Nikita Sobolev <[email protected]>
Fix ReadTheDocs (#11419)

Resolves #11412

06c7433f808cc635178d59bcb4f2449234280ab7 authored about 3 years ago by Nikita Sobolev <[email protected]>
Check module bodies to be reachable (#11361)

Closes #11331

e9c7e1007b724becec9d6a3e5eacfdca69c0c9fc authored about 3 years ago by Nikita Sobolev <[email protected]>
Do not use TypeGuard context for lambda (#11417)

Closes #9927

68047f90bc4f140a717a4dd64ba762003122b20d authored about 3 years ago by Nikita Sobolev <[email protected]>
Marks enums with values as implicitly final (#11247)

Closes #10857

63c414abae02c9afaebe9d0d183aeb911de1807c authored about 3 years ago by Nikita Sobolev <[email protected]>
Fixes type narrowing for overlaping runtime types (#11273)

Closes #11272

f4a21a4010405a3e98d0345de6c8f7ca955ce892 authored about 3 years ago by Nikita Sobolev <[email protected]>
Unskip two tests in `check-varargs.test` (#11418)

refs #2729

4ddc8fb00687473919e51c842b4cdbc479812d0a authored about 3 years ago by Nikita Sobolev <[email protected]>
Sync typeshed (#11416)

Source commit:
https://github.com/python/typeshed/commit/151f256051445f251d9966120f35d4819e433c...

28d57b13ab5ea765728bde534eda2877f8d92b4b authored about 3 years ago by Shantanu <[email protected]>
Refresh README.md, CONTRIBUTING.md (#11413)

This was prompted by #11403

Changes include:
- General streamlining of markdown
- Remove ou...

3d82f6f5f478cefffc17697725fc9008a5551d15 authored about 3 years ago by Shantanu <[email protected]>
Fix manifest (#11415)

This was broken by #11320

Co-authored-by: hauntsaninja <>

4926bf41989047f63e40916cdc89436b4d1a5287 authored about 3 years ago by Shantanu <[email protected]>
Changes how `TypeGuard` types are checked in subtypes (#11314)

Fixes #11307

47d2ea5cedcc9cbf396c0d2ad637980b0090acdc authored about 3 years ago by Nikita Sobolev <[email protected]>
Run tests on release branches (#11409)

Co-authored-by: hauntsaninja <>

3f43c830f37489045ef8fd8e21d232aef42b28ef authored about 3 years ago by Shantanu <[email protected]>
Extend contextmanager to asynccontextmanager (#11352)

Closes #9922

### Description

Extending the existing special case for `contextlib.contextm...

1bf701f82fe94a07cc61a9e683a1fe29a907dd53 authored about 3 years ago by Barnaby Shearer <[email protected]>
Fix typo in documentation (#11381)

76a7542e790561038b18e65e35054ef4ed671fa6 authored about 3 years ago by Tushar Sadhwani <[email protected]>
Add documentation for type: ignore (#11358)

Adds a reference on how # type: ignore can be used.

Resolves #11354

8052c8d08f11b7894e0c07824ef772b38e525469 authored about 3 years ago by Tushar Sadhwani <[email protected]>
Support --exclude more than once on command line (#11329)

The result is an "OR" of all the patterns provided.
Should be fully backward compatible to exis...

01d6eb82e146a37f2a9d873bdc6f1918e95e5308 authored about 3 years ago by Nipunn Koorapati <[email protected]>
Fix PEP 561 tests for latest pip (#11356)

In pip 21.3 the build argument is removed, so this uses an environment
variable to still work o...

9a2838d8dc45e93b28387f5a437f38ec33c1f947 authored about 3 years ago by Ethan Smith <[email protected]>
Revert "Try adding mypy self check on PyPy to CI" (#11365)

This reverts commit caae446df867f60256f2876da807a99781c5b7be.

e942bc85b9a728e21feaaaf6f7d2da24651382cf authored about 3 years ago by Ethan Smith <[email protected]>
Try adding mypy self check on PyPy to CI

caae446df867f60256f2876da807a99781c5b7be authored about 3 years ago by Ethan Smith <[email protected]>
Allow mypy to run self check on PyPy 3.8 beta (#11350)

A few lines change required to have mypy run on PyPy, to the extent that it
can run self-check...

4d0ab445514e0f9795306c0bc88a202be209df6b authored about 3 years ago by Ethan Smith <[email protected]>
Add Github Action definition (#11320)

Define a Github Action that can be used as a canonical way of running
mypy as part of Github CI...

e028045106a9da11c30eb890bf5de7d6d64ee428 authored about 3 years ago by Elvis Pranskevichus <[email protected]>
Show warning if `self` / `cls` arguments are missing (#11317)

Closes #11309

53c7bb2538c37b07843f834aa2f4eeb0b33c7a7f authored about 3 years ago by Nikita Sobolev <[email protected]>
Allow slice syntax in e.g. `Annotated[int, 1:3]` and `TensorType["batch":..., float]` (#11345)

This is useful for Annotated, and crucial for downstream libraries like torchtyping.

9aaeef5f355509ef789dbcdca1f15793698a5960 authored about 3 years ago by Zac Hatfield-Dodds <[email protected]>
Use lookup_fully_qualified for SemanticAnalyzer.named_type (#11332)

Related to #6578

This PR replaces lookup_qualified with lookup_fully_qualified for SemanticAn...

9bd651758e8ea2494837814092af70f8d9e6f7a1 authored about 3 years ago by 97littleleaf11 <[email protected]>
Skip folders on html report, refs #11334 (#11338)

d807e097d142a88a48af93314d15ad87e41d2f19 authored about 3 years ago by Nikita Sobolev <[email protected]>
Skip checking number of interpolations for string formatting when rhs_type is an Iterable type (#11319)

Closes #7764

a114826deea730baf8b618207d579805f1149ea0 authored about 3 years ago by 97littleleaf11 <[email protected]>
Add `TypeAlias` annotations to mypy code (#11321)

f497645611b89a42cca7c5b7c81dbc66777cf6f9 authored about 3 years ago by Nikita Sobolev <[email protected]>
Add comments for `can_be_true` and `can_be_false`. Delete redundant slots definition. (#11327)

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]>
Pep561 tests seem to work on mac (#11325)

4c6dd24b803c484146bce13103f14112fac07c27 authored about 3 years ago by Nipunn Koorapati <[email protected]>
Make flake8 a little stricter (#11326)

flake8 now correctly handles overloads

5f7eb8161bdeefcc526705a48b03115aa1e83a14 authored about 3 years ago by Shantanu <[email protected]>
Fix cmdline package tests for namespace packages (#11323)

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]>
Fwd fix a rebase race on pep561 tests (#11324)

Two PRs landed and conflicted - #11262 and #11141
This fwd fixes the tests.

677c053fcfb1e43d2ed65e3c69209fc2a7257e37 authored about 3 years ago by Nipunn Koorapati <[email protected]>
Add Pep561 tests for stub-only package with namespace packages (#11141)

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]>
Support PEP 613 (#11305)

Resolves #9404

Co-authored-by: hauntsaninja <>

df827c9d8926155b5a47d44f02a02b39823975f5 authored about 3 years ago by Shantanu <[email protected]>
[mypyc] fix build on windows (#11316)

Trying to fix https://github.com/mypyc/mypy_mypyc-wheels/pull/28,
not sure why other windows bu...

8b106c1c634e8c200794fcbef4f546d356b1fc96 authored about 3 years ago by Shantanu <[email protected]>
`None.__bool__` returns `Literal[False]` (#11290)

Closes #11287

8e01ad930015889ea8be1f26556fcc4e4d918e82 authored about 3 years ago by Nikita Sobolev <[email protected]>
Enable CI on Python 3.10 (#11297)

Closes #11294

332b712df848cd242987864b38bd237364654532 authored about 3 years ago by 97littleleaf11 <[email protected]>
Fix build_wheel script nits (#11312)

Co-authored-by: hauntsaninja <>

eeafe6b6945eb68eaab7552010c59102b4457be6 authored about 3 years ago by Shantanu <[email protected]>
(minor) make PEP 612 wip locations more greppable (#11311)

Co-authored-by: hauntsaninja <>

eba24b4c6dcac020fa0b8ced30e8f437d4218147 authored about 3 years ago by Shantanu <[email protected]>
mypyc: use setuptools' distutils (#11306)

8cba3bcd42ce04a98233ab999d92bc901685e082 authored about 3 years ago by Shantanu <[email protected]>
Sync typeshed (#11303)

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

461b4f14d671dbe047cd997992698fa46af1d7c7 authored over 3 years ago by Nikita Sobolev <[email protected]>
Now typechecks `traceback` in `raise e, msg, traceback` on py2 (#11289)

c22beb431a682330276aff2a84b4796abadf71b4 authored over 3 years ago by Nikita Sobolev <[email protected]>
Fix testAsync, test_stdlibsamples and testSrcPEP420Packages with Python 3.10 (#11017)

* 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]>
Adds check for unique enum keys (#11267)

Closes #11248

f2978c3b1b23ea939db58332f94876b73bc01d65 authored over 3 years ago by Nikita Sobolev <[email protected]>
Remove redundant lookup funcs in fixup.py (#11253)

Removes the redundant lookup funcs in fixup.py. Related to #4157.

* Removes lookup_qualified_...

15f23850f3104e92054f5d697535bacb7eefc980 authored over 3 years ago by 97littleleaf11 <[email protected]>
Imporves `__div__` with `__future__` import on py2 (#11276)

e6b91bdc5c253cefba940b0864a8257d833f0d8b authored over 3 years ago by Nikita Sobolev <[email protected]>
Changed DIGIT.DIGIT to MAJOR.MINOR (#11281)

Closes #11122

d0a41a03ee0c25cc711aa9110455c3695dd97069 authored over 3 years ago by Abdul Rehaman <[email protected]>
Delete unused `collect.py` (#11277)

It looks unused, maybe it is safe to delete it.

2aeb4db658daffe8a3ec5b02382d886808992736 authored over 3 years ago by Nikita Sobolev <[email protected]>
Adds `Final` types where they were missing (#11278)

I've noticed several missing Final types here and there.
I've looked though the whole project a...

40a04d82ddc73717ffe450d35dde6b0f5dee95f0 authored over 3 years ago by Nikita Sobolev <[email protected]>
Add link to docs for source file found twice (#11270)

Co-authored-by: hauntsaninja <>

32448b88370f8327c390f4e21666065c87ca95e2 authored over 3 years ago by Shantanu <[email protected]>
Merge lookup_fully_qualified and lookup_fully_qualified_or_none (#11205)

Partially solves #4157

d1d431630d967923a9562b4dff436a509c2acb8b authored over 3 years ago by 97littleleaf11 <[email protected]>
[mypyc] Constant fold int operations and str concat (#11194)

Work on mypyc/mypyc#772.

Replace things like '5 + 8' with '13' during IR building. Also adds
...

f7a53d8521dcc32d3ae0a92f57e9508bb0a59049 authored over 3 years ago by Jukka Lehtosalo <[email protected]>
Disallow invalid identifiers from getting implicit bazel __init__.py (#11268)

This helps unblock #9636. With namespace packages, the
code to crawl upward would not stop anyw...

82f767a3d7bc675be4b32ffab527d14b4abbf8a4 authored over 3 years ago by Nipunn Koorapati <[email protected]>
Make error more self-explanatory when missing stubs or py.typed (#11262)

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]>
Removes possibly unused `builtin_call` (#11264)

edd7ce9e08b3c0240dd909d78b956ffb987f9fe4 authored over 3 years ago by Nikita Sobolev <[email protected]>
Docs for new `__slots__` feature (#11186)

3ad69a08206790d378cb392a8a7d806e82287cca authored over 3 years ago by Nikita Sobolev <[email protected]>
Fix case mismatching modules during namespace package search (#11261)

For example `from a import B` should not find a namespace
package `a/b/`. Fix by using case awa...

c8072773b068f73ad4914e3eac791af6f7d762ce authored over 3 years ago by Nipunn Koorapati <[email protected]>
incremental testsuite: don't write subsequent step files until they are needed (#11257)

This matters with namespace packages enabled - since an (otherwise) empty folder with
some .2 f...

8749901e1186aabce3b1dd92c8decfc0a804158c authored over 3 years ago by Nipunn Koorapati <[email protected]>
mypy self check: exclude test-data (#11258)

So that mypy primer doesn't freak out on #9636

Co-authored-by: hauntsaninja <>

656bc7e311c71e55233f0797b1b51aca4a938bce authored over 3 years ago by Shantanu <[email protected]>
Improves error message for parsing `slice` in annotations (#11241)

Closes #10266

eb5e0869046ab881e0e487ba9e0befb38845c321 authored over 3 years ago by Nikita Sobolev <[email protected]>
Remove duplicate imports in mypy (#11242)

1b6f63b9fdf6f05a554974a470136c7623ad9ea2 authored over 3 years ago by Nikita Sobolev <[email protected]>
gitignore: ignore .venv (#11256)

Co-authored-by: hauntsaninja <>

8f6225a408f337181d9260e06e7d16e5a9e9ca22 authored over 3 years ago by Shantanu <[email protected]>
Remove kind argument of checker.lookup (#11250)

0a830481980bfc554ded61a3eaaaecde384a21e4 authored over 3 years ago by 97littleleaf11 <[email protected]>
Removes unused import from `test-data/unit/plugins` (#11243)

492739692206f05347c6706cb982115446ba552a authored over 3 years ago by Nikita Sobolev <[email protected]>
Fix narrowing of nested union of TypedDicts (#11204)

The code in refine_parent_types() bailed out when it encountered
something other than a TypedDi...

e80da8cbf305c7fd2555dcb8443726eea69fa7d7 authored over 3 years ago by Ran Benita <[email protected]>
Fix narrowing information not propagated in assignment and boolean expressions (#11207)

Fixes #8925.

Consider the following narrowing (more realistically with TypedDicts),
and the ...

02b9694ae2e0cddfe8e285585382b421cd79e9ae authored over 3 years ago by Ran Benita <[email protected]>