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

[mypyc] Fix AttributeError message (#13382)

Previously this would be `attribute 'ClsName' of 'attr_name' undefined`.
Now it's `attribute 'a...

92420469fddfb6b96b1e66ed8ab02ace550bc01c authored over 2 years ago
Support recursive TypedDicts (#13373)

This is a continuation of #13297
Depends on #13371

It was actually quite easy, essentially ...

cba07d7c375edc5e66c43b0068f5070b99f6f899 authored over 2 years ago
Fix crash from invalid location in aliased types (#12745)

Fixes #12678 by updating line and column not only in an alias type variable
but also recursive...

601802cad1d9731911e166e1ba71b655f545c93c authored over 2 years ago
Support recursive named tuples (#13371)

This is a continuation of #13297

The main change here is that although named tuples are stil...

03638dd670373db0b8f00cc3bcec256d09729d06 authored over 2 years ago
Run `pyupgrade` on all other python sources (#13375)

27c5a9e8852b08a89501075a52df6782c74da4e1 authored over 2 years ago
Allow stubtest to raise errors on abstract state mismatch (#13323)

Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Shantanu <12621235+haunts...

e77ee3b8f268defe3937327fd08ceb712b957cfa authored over 2 years ago
Run `pyupgrade` on the `mypyc` source code (#13366)

0ce87939a4cfcbd406ba56f4c4cbd07303dafa22 authored over 2 years ago
Fail gracefully on diverging recursive type aliases (#13352)

This is another follow up on #13297.

We can't support aliases like `Nested = Union[T, Nested[...

cef452dbb5b18bb79ca8a92522fa9f0b44208594 authored over 2 years ago
Remove some 3.6 legacy (#13349)

cb50e63240aae78821c548e249173a04059b98e5 authored over 2 years ago
Modernize `pyinfo.py` to 3.7+ (#13356)

6db26db60073349951fbf61b0bb027f3c51f76f3 authored over 2 years ago
Group typing_extensions imports next to typing (#13361)

0db44d24423a554e5813e3194e64e0a3a6e795fd authored over 2 years ago
Run `pyupgrade` on the source code (#13355)

694f283a713d873d3ebb6a34edb32ba7a744683a authored over 2 years ago
Remove Optional[...] special-casing during semantic analysis (#13357)

This is another fix for recursive aliases. Ref #13297

Previously this special casing caused ...

e69bd9a7270daac8db409e8d08400d9d32367c32 authored over 2 years ago
Use Python 3.7 for self check (#13354)

ae2fc03f1194e5f1bf25347d5392101f10e53486 authored over 2 years ago
Typeshed minimal version is 3.7 (#13348)

45b9f515fc1bc5345b491fbad0183b55218192fa authored over 2 years ago
Advertise typing status via classifier (#13350)

The package advertises its typing status to typing tools via `py.typed` file.
Adding the Trove ...

49e3386a90dc53a991d97dfcb6965787233c82c5 authored over 2 years ago
Ensure Python 3.7 in `setup.py` (#13347)

dc118e293203863ab1007699b2cecf0f26ddfa22 authored over 2 years ago
update theme used from sphinx_rtd_them to furo (#13345)

7f14a9eec621fd50f7428492c1a6a632b9a3cb80 authored over 2 years ago
stubtest: show path to stub file (#13342)

3aa929667e197c282c581c9df7a58c6496ca64a1 authored over 2 years ago
Delete unused backports and other various cleanups (#13344)

11fe16548c06cc67d6288d08cc6b27379ff974a0 authored over 2 years ago
Remove some python2 left-overs (#13340)

48ae9d523140e57c5944d918d4e747565bedabee authored over 2 years ago
Use a better colour for gray (#13338)

17fd374d6a8688fe3bd998102637e1259aa1e4e4 authored over 2 years ago
Fail gracefully on invalid and/or unsupported recursive type aliases (#13336)

This is a follow up for #13297.

See some motivation in the original PR (also in the docstrings).

678ea184d64aadd22b6b66abaf71dedc3f83d4b2 authored over 2 years ago
Support type aliases in metaclasses (#13335)

* Support type aliases in metaclasses, refs #13334

* More tests

* Address review

5d3eeea2f5b866f971a89dfe21ff0710ebe08bc8 authored over 2 years ago
Use --no-implicit-reexport and --disallow-untyped-decorators (#13329)

002ec8cc82204a6284195fa53422676cb3560982 authored over 2 years ago
Handle interactions between recursive aliases and recursive instances (#13328)

This is a follow-up for #13297

The fix for infinite recursion is kind of simple, but it is h...

608de81d7617fd715f2f4bdca6b8c15c73caabbc authored over 2 years ago
refactor: use `TypeAlias` and `Final` for `stubtest` consts (#13333)

b3eebe3e1a070dbe3d1958f3d5804f44c06d32a8 authored over 2 years ago
Cleaner usage of get_proper_type() (#13326)

This is a follow up for #13297

I move around some calls to `get_proper_type()` to preserve or...

43476aabf73fbe885f1db49597735c797799fa67 authored over 2 years ago
Delete sametypes.py (#13311)

Fixes #7924

So this is not 100% refactor, I make several semantic changes. As discussed in th...

7251ef8f51a5835d8a10a69105820686ba671005 authored over 2 years ago
Add `.pyi` files to `.editorconfig` (#13324)

5c0377cd7fdc30d5378da661f4017f09fe491952 authored over 2 years ago
stubtest: improve signature checking (#13307)

Avoid issuing duplicate errors for keyword-only mismatches.
Fixes #13305

Fix cases where PEP...

c1f952a87130a2d1165800b8e803d37150cd655c authored over 2 years ago
Remove Python 2 logic from file reading utils (#13312)

68414cd8ecd62c0bc6cb65831128cec1c26383e8 authored over 2 years ago
Handle files ending with __init__ better (#13314)

Fixes #10329

ff1b0926c52da4a135dcafe6ec4405d27ee9ac71 authored over 2 years ago
Respect tuple.__getitem__ from typeshed (#13313)

Fixes #3047

38b2444411617698b04a0832ab8a6ff5a7a20eda authored over 2 years ago
refactor: prefer f-strings and underscores in numeric literals over format in docs since Mypy requires Python 3.6+ (#13317)

008b408c35cdb266cc8b9b3a3044144e691e1a74 authored over 2 years ago
Merge subtype visitors (#13303)

Fixes #3297

This removes a significant chunk of code duplication. This is not a pure refactor...

d27bff62f71a8b914b1df239467148e81d2e88a2 authored over 2 years ago
Enable recursive type aliases behind a flag (#13297)

This PR exposes recursive type aliases that were secretly there for last ~3 years. For now they ...

d2063d260ad3096df78867abf53aa247d67b401e authored over 2 years ago
Treat methods with empty bodies in Protocols as abstract (#12118)

Also give a note if return type is compatible with `None` (and strict optional is on).

1bb970a874653964c7313521db4b7a6c69296232 authored over 2 years ago
Remove build wheel script (#13308)

See https://github.com/mypyc/mypy_mypyc-wheels/pull/45

Having the script in the main repo mad...

d468b85fb0267ad0e06a63796e243d8da8f75f3e authored over 2 years ago
stubtest: ignore __pyx_vtable__ (#13302)

def2fa115c483c9b67303d01e5220e8afb7ed81a authored over 2 years ago
Fix `--custom-typeshed-dir` crash caused by #13155 (#13296)

Fixes #13295

9d03933ce514a5f7f310800df434e447daca07f5 authored over 2 years ago
stubtest: use single line error message (#13301)

This preserves the invariant that in `--concise` the problematic objects
are the start of each ...

0d61315caccc3ed2ad49273b265795f095f64b84 authored over 2 years ago
stubtest: verify the contents of `__all__` in a stub (#12214)

f6bac71b3fa7092e4f1cfe086f96ee02ff51b0de authored over 2 years ago
Remove Python 2 logic from functools (#13299)

6dc3a396a174dd7765cf492c3e17be5bbfedc28b authored over 2 years ago
Remove Python 2 logic from modulefinder (#13275)

da465ed850bb8f8d9be6674bcdaaeb0a19394b99 authored over 2 years ago
Ensure builtin modules are from typeshed sooner (#13155)

It should work now with custom-typeshed-dir.

Fixes #1876

cbabbf7f1450eb1098d947386bcac92e90ff5909 authored over 2 years ago
stubtest: improve docs (#13293)

69fdc2dabbcd3ac2ef9e74580bec09951a6505a7 authored over 2 years ago
Add musllinux wheel support, Use 'official' llvm build for compilation (#13228)

ecc653bf30af34d25f7ddfda36bdac2c4e0f9b96 authored over 2 years ago
stubtest: minor cleanup now 3.6 is no longer supported (#13292)

074f8f842b640d59615e0e49e301160e71fd040a authored over 2 years ago
Allow stubtest to ignore python2 only magic methods (#13290)

8919d2a50e13bf8fd97617e5f1209f040f5ed281 authored over 2 years ago
Fix tests on Python 3.10.0 (#13289)

Syntax error was changed in a micro version; wheel builds use 3.10.0

0d7424c9f80e5695042f21e9d2ea44661d0d6a8a authored over 2 years ago
Fix MANIFEST.in checks (#13288)

a65265df3122af1167cb256937c067756af63738 authored over 2 years ago
stubtest: fallback to getattr_static on AttributeError (#13285)

5e340c1a7d2d0e1b432387a63f22d3515702806e authored over 2 years ago
Delete some unused code (#13276)

* Delete some unused code

* lint

6648199ed8f1630e63c08c184939bc93abf513d1 authored over 2 years ago
Remove python2 from `build.py` and `reachability.py` (#13280)

3f33023e835af94cd2f535190dd2056dcb748d5e authored over 2 years ago
Remove python2 magic methods support (#13277)

396dafbfa895d2eb59892a5908cb997e61cd1915 authored over 2 years ago
Clean up unused code in stubgen (#13278)

35e80ce8f34de86f69ff1c18b1e3c3c197deb899 authored over 2 years ago
stubtest: reduce false positives on runtime type aliases (#13116)

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

ff6fbe86e52de3daf5dc9ea69fbfc88d58fba486 authored over 2 years ago
Cancel old test jobs in CI (#13249)

1ff79b6cc9d62dc29b532ae0b2bab71b9c29568b authored over 2 years ago
Remove all `builtins.unicode` references (#13272)

f84e2cf1b0cbd1b7e7752cf204eacb68b3e04968 authored over 2 years ago
Remove Python 2 logic from checkexpr (#13264)

222ac7bc7d0a7837bcb2295e8c63a19c87d90bb0 authored over 2 years ago
Remove python2 logic from `plugins/attrs.py` (#13268)

e67fedf73a0250b5957184c0433e6c843554871a authored over 2 years ago
Remove python2 logic from `server/deps.py` (#13267)

6180a263f7eee2610bf7791d42fa78991fd547b5 authored over 2 years ago
Simplify stubinfo without Python 2 (#13265)

b50a4ef46ca20dd3c6dfd53ca0837fa3c7287957 authored over 2 years ago
Disallow bytes in TypeVar, NewType, and TypedDict names (#13273)

Similar to #13271

e311f827947dddec9501d6e6ae39cfc686292349 authored over 2 years ago
Prohibit bytes literals in named tuples (#13271)

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

35ab579f53efd794de5ba2944759ed59ae89ec23 authored over 2 years ago
Remove Python 2 specific semanal and parse logic (#13263)

b0c2a72bffea5d8ba7e071e426101b9cce98854f authored over 2 years ago
Remove from_python_3 field from StrExpr (#13262)

2e08ce69d5d99127c7e9e9dc198140c48776a2a9 authored over 2 years ago
Add test case involving constrained generic super (#13266)

This is from https://github.com/python/mypy/pull/11378#discussion_r742825540

0ec789d5322b6bc388ca045544beb57759aee457 authored over 2 years ago
Remove some Python 2 type checking logic (#13261)

3ae67befd03f27f47cb995d8b531e08548d05592 authored over 2 years ago
Clean up some Python 2 configuration (#13258)

e2fb448362e9efe81f684b49e2375f6035074ab1 authored over 2 years ago
Clean up Python 2 helpers (#13260)

4a4aa9fbc8c9b91074d439222d43da34a21b4680 authored over 2 years ago
Fix several tests on Python 3.11 (#13259)

As a result of https://github.com/python/cpython/pull/94948
we started to fail these tests on P...

9da4fb675dc36f8ea0ebdc38c9ae5e0de27038ac authored over 2 years ago
Remove Python 2 only stubs (#13257)

fcf8f0b1db2435ba2206281218c48430b0540228 authored over 2 years ago
Drop stubgen support for Python 2 (#13256)

154d6f9a9890389353e845968bc9c89d9f2322da authored over 2 years ago
Remove mention of Python 2 from documentation (#13255)

002f77cedc9a5c772ebcfb0c5d245a98044c8b21 authored over 2 years ago
Delete Python 2 specific AST nodes (#13254)

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

989e4079363aca4b8c88a88fbe3e12e620249508 authored over 2 years ago
Sync typeshed (#13252)

Source commit:
https://github.com/python/typeshed/commit/5397d430ea306787fe46903123aa24ef2838c3...

23e38cee3cc6475eccc94a9c42d865ac147c476d authored over 2 years ago
Use Python 3.7 as default in tests, drop 3.6 in CI (#13101) (#13253)

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

Co-authored-by: Juk...

9798fff6f2cffb508c3a25bb703112fd4a02e085 authored over 2 years ago
Add daemon command to get type of an expression (#13209)

Implementation is straightforward (I also tried to make it future-proof, so it is easy to add ne...

4687cec37a2a28e477e0fcf7eb95d2701bea55eb authored over 2 years ago
Delete fastparse2.py (#13251)

We don't need it anymore as mypy now fails unconditionally if Python 2 version is selected.

R...

086e823b233a48a8733ef1e92943a0cecf7e60a4 authored over 2 years ago
Remove python2 logic from `checkstrformat.py` (#13248)

1fa71c4ba8540a4abf50679365e432e3556d16ae authored over 2 years ago
Remove python2 logic from `checkmember.py` (#13246)

87fcd076bcc5aa4bf09762dc7b1c27eede413027 authored over 2 years ago
Fix black badge in readme (#13247)

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

c7861ca3760aba72f5c15f6773b10e1039cb8ee2 authored over 2 years ago
Remove python2 specific logic for `raise` keyword check (#13242)

1a65c1d4044933c967b17c1450a5d0daba112b4e authored over 2 years ago
Suggest using a newer Python version if possibly needed (#13197)

Fixes #12357

5f8589817e5f4f8286b2751effd70a2473b3653a authored over 2 years ago
Check implicit None return is valid when using `--no-warn-no-return` (#13219)

Fixes #7511

c02ec4a5b51e66239bbd11e4da6a8edf7e3e6f04 authored over 2 years ago
add black/isort git blame ignore rev (#13244)

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

2e03c164ebf751071d59f920daaf59d1b73f7ab4 authored over 2 years ago
format files with black/isort

97c5ee99bc98dc475512e549b252b23a6e7e0997 authored over 2 years ago
add black/isort configuration

c898b90358f28123c429717c6c8c0051806d7240 authored over 2 years ago
No longer support checking Python 2 (#13135)

Linking #12237

5718dfff79b62f75abb2d7ecbbfc089f02548099 authored over 2 years ago
Implement more cases for typevartuple subtyping. (#13211)

This implements a few more tests and cases for the subtype checks for variadic generics in tests...

c0851f08459f1737d58b316cc55c03e4c4b886e6 authored over 2 years ago
Fix site package on MYPYPATH check (#13223)

This was a regression in 0.971

Fixes #13214

2a519c06903b93c371199f87b20e8b4963859af9 authored over 2 years ago
Use GitHub's zipball as alternative to 'git+https' in README.md (#13208)

4cc3f9a8b1e968f5ebf79398c506bc3fd2d8e64d authored over 2 years ago
Implement basic constraints unit tests. (#13210)

This adds some basic constraints tests with the intent of adding more complex
ones for variadi...

b0e59b29be239ce35cffcef20639709259ee48df authored over 2 years ago
Implement basic subtyping & inferrence for variadic classes. (#13105)

This makes several basic testcases for using classes with variadic generics
pass. Some pieces ...

15e4de5dc8c9d65524f4cddd3043894a01638607 authored over 2 years ago
Fix flake8 (#13205)

Oops.

da0213b71bf56552db8f976e88a61b2553eb581d authored over 2 years ago
Make `None` compatible with `SupportsStr` protocol (#13184)

Previously we had a special case for None and __hash__, but it can be
extended for __str__ as ...

fa7bdd110e9f5766792b46b0d1e21e2fb2780038 authored over 2 years ago
Fix caching of PEP 561 namespace packages (#13124)

Fixes #13085. Hopefully more robust than previous fixes along these lines.

Co-authored-by: ha...

c0b3530a94e6b7e7b9acf80979fd294d369ce430 authored over 2 years ago
Print and show error end locations (#13148)

Using the flag --show-error-end the errors will be output like
file:line:column:end_line:end_c...

962d7b46b89e8481b47ebcdee95a702af1b88634 authored over 2 years ago