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
Previously this would be `attribute 'ClsName' of 'attr_name' undefined`.
Now it's `attribute 'a...
This is a continuation of #13297
Depends on #13371
It was actually quite easy, essentially ...
cba07d7c375edc5e66c43b0068f5070b99f6f899 authored over 2 years ago
Fixes #12678 by updating line and column not only in an alias type variable
but also recursive...
This is a continuation of #13297
The main change here is that although named tuples are stil...
03638dd670373db0b8f00cc3bcec256d09729d06 authored over 2 years ago27c5a9e8852b08a89501075a52df6782c74da4e1 authored over 2 years ago
Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Shantanu <12621235+haunts...
0ce87939a4cfcbd406ba56f4c4cbd07303dafa22 authored over 2 years ago
This is another follow up on #13297.
We can't support aliases like `Nested = Union[T, Nested[...
cef452dbb5b18bb79ca8a92522fa9f0b44208594 authored over 2 years agocb50e63240aae78821c548e249173a04059b98e5 authored over 2 years ago
6db26db60073349951fbf61b0bb027f3c51f76f3 authored over 2 years ago
0db44d24423a554e5813e3194e64e0a3a6e795fd authored over 2 years ago
694f283a713d873d3ebb6a34edb32ba7a744683a authored over 2 years ago
This is another fix for recursive aliases. Ref #13297
Previously this special casing caused ...
e69bd9a7270daac8db409e8d08400d9d32367c32 authored over 2 years agoae2fc03f1194e5f1bf25347d5392101f10e53486 authored over 2 years ago
45b9f515fc1bc5345b491fbad0183b55218192fa authored over 2 years ago
The package advertises its typing status to typing tools via `py.typed` file.
Adding the Trove ...
dc118e293203863ab1007699b2cecf0f26ddfa22 authored over 2 years ago
7f14a9eec621fd50f7428492c1a6a632b9a3cb80 authored over 2 years ago
3aa929667e197c282c581c9df7a58c6496ca64a1 authored over 2 years ago
11fe16548c06cc67d6288d08cc6b27379ff974a0 authored over 2 years ago
48ae9d523140e57c5944d918d4e747565bedabee authored over 2 years ago
17fd374d6a8688fe3bd998102637e1259aa1e4e4 authored over 2 years ago
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, refs #13334
* More tests
* Address review
5d3eeea2f5b866f971a89dfe21ff0710ebe08bc8 authored over 2 years ago002ec8cc82204a6284195fa53422676cb3560982 authored over 2 years ago
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 agob3eebe3e1a070dbe3d1958f3d5804f44c06d32a8 authored over 2 years ago
This is a follow up for #13297
I move around some calls to `get_proper_type()` to preserve or...
43476aabf73fbe885f1db49597735c797799fa67 authored over 2 years agoFixes #7924
So this is not 100% refactor, I make several semantic changes. As discussed in th...
7251ef8f51a5835d8a10a69105820686ba671005 authored over 2 years ago5c0377cd7fdc30d5378da661f4017f09fe491952 authored over 2 years ago
Avoid issuing duplicate errors for keyword-only mismatches.
Fixes #13305
Fix cases where PEP...
c1f952a87130a2d1165800b8e803d37150cd655c authored over 2 years ago68414cd8ecd62c0bc6cb65831128cec1c26383e8 authored over 2 years ago
Fixes #10329
ff1b0926c52da4a135dcafe6ec4405d27ee9ac71 authored over 2 years agoFixes #3047
38b2444411617698b04a0832ab8a6ff5a7a20eda authored over 2 years ago008b408c35cdb266cc8b9b3a3044144e691e1a74 authored over 2 years ago
Fixes #3297
This removes a significant chunk of code duplication. This is not a pure refactor...
d27bff62f71a8b914b1df239467148e81d2e88a2 authored over 2 years agoThis PR exposes recursive type aliases that were secretly there for last ~3 years. For now they ...
d2063d260ad3096df78867abf53aa247d67b401e authored over 2 years agoAlso give a note if return type is compatible with `None` (and strict optional is on).
1bb970a874653964c7313521db4b7a6c69296232 authored over 2 years agoSee https://github.com/mypyc/mypy_mypyc-wheels/pull/45
Having the script in the main repo mad...
d468b85fb0267ad0e06a63796e243d8da8f75f3e authored over 2 years agodef2fa115c483c9b67303d01e5220e8afb7ed81a authored over 2 years ago
Fixes #13295
9d03933ce514a5f7f310800df434e447daca07f5 authored over 2 years ago
This preserves the invariant that in `--concise` the problematic objects
are the start of each ...
f6bac71b3fa7092e4f1cfe086f96ee02ff51b0de authored over 2 years ago
6dc3a396a174dd7765cf492c3e17be5bbfedc28b authored over 2 years ago
da465ed850bb8f8d9be6674bcdaaeb0a19394b99 authored over 2 years ago
It should work now with custom-typeshed-dir.
Fixes #1876
cbabbf7f1450eb1098d947386bcac92e90ff5909 authored over 2 years ago69fdc2dabbcd3ac2ef9e74580bec09951a6505a7 authored over 2 years ago
ecc653bf30af34d25f7ddfda36bdac2c4e0f9b96 authored over 2 years ago
074f8f842b640d59615e0e49e301160e71fd040a authored over 2 years ago
8919d2a50e13bf8fd97617e5f1209f040f5ed281 authored over 2 years ago
Syntax error was changed in a micro version; wheel builds use 3.10.0
0d7424c9f80e5695042f21e9d2ea44661d0d6a8a authored over 2 years agoa65265df3122af1167cb256937c067756af63738 authored over 2 years ago
5e340c1a7d2d0e1b432387a63f22d3515702806e authored over 2 years ago
* Delete some unused code
* lint
6648199ed8f1630e63c08c184939bc93abf513d1 authored over 2 years ago3f33023e835af94cd2f535190dd2056dcb748d5e authored over 2 years ago
396dafbfa895d2eb59892a5908cb997e61cd1915 authored over 2 years ago
35e80ce8f34de86f69ff1c18b1e3c3c197deb899 authored over 2 years ago
Co-authored-by: hauntsaninja <[email protected]>
ff6fbe86e52de3daf5dc9ea69fbfc88d58fba486 authored over 2 years ago1ff79b6cc9d62dc29b532ae0b2bab71b9c29568b authored over 2 years ago
f84e2cf1b0cbd1b7e7752cf204eacb68b3e04968 authored over 2 years ago
222ac7bc7d0a7837bcb2295e8c63a19c87d90bb0 authored over 2 years ago
e67fedf73a0250b5957184c0433e6c843554871a authored over 2 years ago
6180a263f7eee2610bf7791d42fa78991fd547b5 authored over 2 years ago
b50a4ef46ca20dd3c6dfd53ca0837fa3c7287957 authored over 2 years ago
Similar to #13271
e311f827947dddec9501d6e6ae39cfc686292349 authored over 2 years agoCo-authored-by: Ivan Levkivskyi <[email protected]>
35ab579f53efd794de5ba2944759ed59ae89ec23 authored over 2 years agob0c2a72bffea5d8ba7e071e426101b9cce98854f authored over 2 years ago
2e08ce69d5d99127c7e9e9dc198140c48776a2a9 authored over 2 years ago
This is from https://github.com/python/mypy/pull/11378#discussion_r742825540
0ec789d5322b6bc388ca045544beb57759aee457 authored over 2 years ago3ae67befd03f27f47cb995d8b531e08548d05592 authored over 2 years ago
e2fb448362e9efe81f684b49e2375f6035074ab1 authored over 2 years ago
4a4aa9fbc8c9b91074d439222d43da34a21b4680 authored over 2 years ago
As a result of https://github.com/python/cpython/pull/94948
we started to fail these tests on P...
fcf8f0b1db2435ba2206281218c48430b0540228 authored over 2 years ago
154d6f9a9890389353e845968bc9c89d9f2322da authored over 2 years ago
002f77cedc9a5c772ebcfb0c5d245a98044c8b21 authored over 2 years ago
Co-authored-by: Shantanu <[email protected]>
Co-authored-by: Ivan ...
Source commit:
https://github.com/python/typeshed/commit/5397d430ea306787fe46903123aa24ef2838c3...
Co-authored-by: Shantanu <[email protected]>
Co-authored-by: Juk...
9798fff6f2cffb508c3a25bb703112fd4a02e085 authored over 2 years agoImplementation is straightforward (I also tried to make it future-proof, so it is easy to add ne...
4687cec37a2a28e477e0fcf7eb95d2701bea55eb authored over 2 years agoWe don't need it anymore as mypy now fails unconditionally if Python 2 version is selected.
R...
086e823b233a48a8733ef1e92943a0cecf7e60a4 authored over 2 years ago1fa71c4ba8540a4abf50679365e432e3556d16ae authored over 2 years ago
87fcd076bcc5aa4bf09762dc7b1c27eede413027 authored over 2 years ago
Co-authored-by: KotlinIsland <[email protected]>
c7861ca3760aba72f5c15f6773b10e1039cb8ee2 authored over 2 years ago1a65c1d4044933c967b17c1450a5d0daba112b4e authored over 2 years ago
Fixes #12357
5f8589817e5f4f8286b2751effd70a2473b3653a authored over 2 years agoFixes #7511
c02ec4a5b51e66239bbd11e4da6a8edf7e3e6f04 authored over 2 years agoCo-authored-by: KotlinIsland <[email protected]>
2e03c164ebf751071d59f920daaf59d1b73f7ab4 authored over 2 years ago97c5ee99bc98dc475512e549b252b23a6e7e0997 authored over 2 years ago
c898b90358f28123c429717c6c8c0051806d7240 authored over 2 years ago
Linking #12237
5718dfff79b62f75abb2d7ecbbfc089f02548099 authored over 2 years agoThis implements a few more tests and cases for the subtype checks for variadic generics in tests...
c0851f08459f1737d58b316cc55c03e4c4b886e6 authored over 2 years agoThis was a regression in 0.971
Fixes #13214
2a519c06903b93c371199f87b20e8b4963859af9 authored over 2 years ago4cc3f9a8b1e968f5ebf79398c506bc3fd2d8e64d authored over 2 years ago
This adds some basic constraints tests with the intent of adding more complex
ones for variadi...
This makes several basic testcases for using classes with variadic generics
pass. Some pieces ...
Previously we had a special case for None and __hash__, but it can be
extended for __str__ as ...
Fixes #13085. Hopefully more robust than previous fixes along these lines.
Co-authored-by: ha...
c0b3530a94e6b7e7b9acf80979fd294d369ce430 authored over 2 years ago
Using the flag --show-error-end the errors will be output like
file:line:column:end_line:end_c...