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
Found via `codespell -q 3 -S ./mypyc/external/googletest -L alo,ans,asend,ba,bre,dne,fo,haa,ist,...
909ec85c5d9dea50ec137d183b6975e55c7190c1 authored almost 3 years ago by luzpaz <[email protected]>7b2f86111473a32a753e46a74c954c64cbc3dccb authored almost 3 years ago by Kevin Mai-Husan Chia <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
a33d2353a81d075850a487f3913720037f2473aa authored almost 3 years ago by Jordan Speicher <[email protected]>lenght -> length
b7d74f3e202fa60ff0d8a2efc299913aad68e2ed authored almost 3 years ago by Ikko Ashimine <[email protected]>Recognise new 'attrs' package name in the attrs plugin
433544bf6f8b886f5f364e3a8de4cc1c0eb43da9 authored almost 3 years ago by Spencer Brown <[email protected]>7ac5a1993f28d4a3ef8b7c7fbc541fc4210e5414 authored almost 3 years ago by jhance <[email protected]>
Closes #10076
bd530392cdbe444c63cc21820ad7b9748ea9c816 authored almost 3 years ago by Stanislav K <[email protected]>
Allow extension file names such as `native.pyd` in addition to
`native.<python-version>.<ext>`....
Co-authored-by: KotlinIsland <[email protected]>
466be215e431ddc7540840f814eed45163a141cc authored almost 3 years ago by KotlinIsland <[email protected]>#12415 (included in release 0.942) unblocked typeshed from adding missing `__match_args__` attri...
ecef427dbd046a0ec7738bb06dd81bd761d104dd authored almost 3 years ago by Alex Waygood <[email protected]>
Since yields in nested functions will not yield outside of the
considered function, they can be...
The implementation merges consecutive GetAttr and Branch ops.
The main benefit is that this m...
c7559283995ea020afbb82d92cad538f0b174913 authored almost 3 years ago by Jukka Lehtosalo <[email protected]>
Since python/typeshed#7535, typeshed has a new type `_typeshed.Incomplete`,
intended to mark fi...
Python 3.10.3 is more correct about syntax error for
`mypy` test case `testBlocker`.
See htt...
6b0e8485ac20a15fb7ad8762e14315c9e9bdc349 authored almost 3 years ago by Stanislav Levin <[email protected]>Co-authored-by: hauntsaninja <>
aa7c170b4ad31bada4faea003f9f0cb99bb58b25 authored almost 3 years ago by Shantanu <[email protected]>
Current readthedoc theme cannot fully utilize the width of browser especially
when you are usi...
A wider return type can be useful if a decorator used for the overload
implementation gets a mo...
When this piece of code was checked:
```python
from typing import Awaitable, Hashable, Union...
* semanal: Disallow async for/with in non-async functions
* Fix invalid async syntax in test
fa9921a49dfc5982e221af474b05191160a7f763 authored almost 3 years ago by Štěpán Horáček <[email protected]>3751e382dd3474b75fb4cdfc4f255e433aef555d authored almost 3 years ago by jhance <[email protected]>
Various things can go wrong if the order of modules in the builtins
SCC that also includes typi...
efe9a31f65f0204d674ea761b58b640fb7031248 authored almost 3 years ago by Max Shvets <[email protected]>
Multiple inheritance from dataclasses and attrs classes works at runtime,
so don't complain abo...
Allows any dunder (`__name__`) attributes except `__members__` (due to it being
read-only) to ...
Fixes #12416.
b814ae15aa1897f22e4d1783439aa39fc8c92f4c authored almost 3 years ago by Jukka Lehtosalo <[email protected]>
Allow subclasses to override `__match_args__` freely, and don't require
`__match_args__` to be ...
Fixes https://github.com/python/mypy/issues/12388
Co-authored-by: Cibin Mathew <cibinmathew@u...
49825a9057d8c52603e91f6b99e4de94ca3d8a66 authored almost 3 years ago by Cibin Mathew <[email protected]>aabbf471f929cf1540fbe46828b11a4fe4c764b3 authored almost 3 years ago by KotlinIsland <[email protected]>
Co-authored-by: hauntsaninja <>
4de80616b8dd1392bb8dea04eb7c32b57a93e64d authored almost 3 years ago by Shantanu <[email protected]>27938e7007595584192573f80ab8977a534431f0 authored almost 3 years ago by Alex Waygood <[email protected]>
This has been failing locally for me, and since Python 2 is EOL, I
don't want to figure out how...
flake8-bugbear released a new version with new checks.
SourceFinder is small (and we don't have...
Fixes #12232
Another "fail every 2nd run" bug
`if not self.is_module(sub_id):`, the parent...
abab1cd84f002894022da513075ab6d4cf82b065 authored almost 3 years ago by Shantanu <[email protected]>
### Description
Log a warning instead of failing when `dmypy run` is called on a project that h...
This fixes a test case, the test case included a NBSP which
resulted in the test being complete...
fd905502e8d94ae6a97e5120aeb687b4a59516eb authored almost 3 years ago by 97littleleaf11 <[email protected]>
### Description
This PR fixes #12072 by correctly handling `Protocol` definitions. Previously...
21d957afc6241c57eaa364c70920e3927ff94fdd authored almost 3 years ago by citruz <[email protected]>
Adds very basic support for Unpack expressions (where Unpack
is either from typing or typing_ex...
Updates documentation for both builtin generic types and `typing`
generic types to include `ty...
`SupportsLessThan` was removed from `_typeshed` in
https://github.com/python/typeshed/pull/658...
Co-authored-by: Chris Rose <[email protected]>
91357952db51a2d7f1c72dd5cc04f0fcb58c9248 authored almost 3 years ago by Chris Rose <[email protected]>f9dadb13daca61bdf7972c95c36071956e7d3b43 authored almost 3 years ago by Niklas Gustafsson <[email protected]>
This PR adds enable_error_code to the configuration documentation,
with a description similar ...
Don't merge conditional FuncDef
after an unconditional one.
This reverts commit 3a5b2a996af8e0333e5eebbdbadc9eec3d1f310e.
7ee84c71e851ce373d1824ecc09332caa373148c authored almost 3 years ago by Jukka Lehtosalo <[email protected]>
In CPython, the id of an object is its address. It's computed by
converting the pointer to an u...
Generates an error when an expression has a type which has a
defined __await__ in its MRO but i...
3a5b2a996af8e0333e5eebbdbadc9eec3d1f310e authored almost 3 years ago by Jared Hance <[email protected]>
* Some minor documentation updates
* Add more discussion of exhaustiveness checking
* Update d...
3024b3291d4317576f6d689e262d5e1eb1be17f7 authored almost 3 years ago by Jukka Lehtosalo <[email protected]>
Co-authored-by: hauntsaninja <>
504779b8511b36880df13476b4fbb35a6625743f authored almost 3 years ago by Shantanu <[email protected]>Resolves #12317
Co-authored-by: hauntsaninja <>
4a744b35e28277e2193feb78de90d3b3cbb3169b authored almost 3 years ago by Shantanu <[email protected]>This will be broken by https://github.com/python/typeshed/pull/7454
Co-authored-by: hauntsani...
47e2ca8f54a0f72596e429c820cd9674a215f827 authored almost 3 years ago by Shantanu <[email protected]>18c32da8459632c746be597cd03f891d566f85d1 authored almost 3 years ago by Jukka Lehtosalo <[email protected]>
5d82d5b98098ba639c517dd9dfc7273704b1e761 authored almost 3 years ago by Shantanu <[email protected]>
Fixes #11082
8650f5c2eedc26f11b6f5c35cf0c0d752aaf51fb authored almost 3 years ago by Štěpán Horáček <[email protected]>Closes #12010.
Mypy can now detect if a match statement covers all the possible values.
Exam...
PRs that only affect stubtest or stubgen are never going to have any effect on mypy_primer's out...
fce1b548be74f7c65f8e3645f2a2b46aeff0c5a8 authored almost 3 years ago by Alex Waygood <[email protected]>
This isn't actually a reversion. This logic was asymmetrical for reasons
lost to time. Although...
This reverts commit 777885f2c26cce195f6d23c80fefae1e66dfaac2.
To help with https://github.com...
b3752a60af3f8e6a1b17c4ebc90ed554cb934288 authored almost 3 years ago by Shantanu <[email protected]>Basically a follow up to #12282
Co-authored-by: hauntsaninja <>
4d99f7c6ee5bcae4eedb041106943cf29b58ceb3 authored almost 3 years ago by Shantanu <[email protected]>Fixes https://github.com/python/mypy/issues/11019
`run_stubtest` creates temp directory and p...
a562f0aac287b1069a8267b3812fb6813eaefec3 authored almost 3 years ago by Stanislav Levin <[email protected]>73a5b3c2d0224d7d3bfe094309552f6c5c60c6cb authored almost 3 years ago by Marc Mueller <[email protected]>
### Description
This PR allows users to define overloads conditionally, e.g., based on the Py...
0777c1006c2307f4a3d1cc87462b13cbd2a85435 authored almost 3 years ago by Marc Mueller <[email protected]>68b3b27c2fc47cc01f16d98e7e7d944ad5c0c6be authored almost 3 years ago by 97littleleaf11 <[email protected]>
7b4d72596fadb9da28a932f044834fa07e885668 authored almost 3 years ago by 97littleleaf11 <[email protected]>
Fixes #12070
26bfc631c1cd25a874cce21c0b08df5e7d939edb authored almost 3 years ago by Purna Chandra Mansingh <[email protected]>See https://github.com/python/typeshed/issues/5863
Co-authored-by: hauntsaninja <>
187f39461df068766a3129fa99ac376fc5a7143b authored almost 3 years ago by Shantanu <[email protected]>
Closes #12258
Closes #12262
e7846480501d816f938f82932f937683621247b9 authored almost 3 years ago by Alex Waygood <[email protected]>
feca706d5f2540003ae8b24009d56dac7c067eba authored almost 3 years ago by Jukka Lehtosalo <[email protected]>
Use renaming to allow two with statements to define the same variable
using incompatible types....
Now `__future__` imports do not leak in semanal.py.
Closes #11740
Refs #11741
Refs #11276
...
Tests for multi-file and separate compilation modes are a bit
special, and it seems useful to h...
I'm not adding a test because it's Python 2, but I did test locally.
Co-authored-by: hauntsan...
a3fc35a10dbf8158e1e989787202ab6c7b1766d1 authored almost 3 years ago by Shantanu <[email protected]>After merging https://github.com/python/mypy/pull/11805 I found out that we are missing several ...
fa3adbd462eb1be64c4417d75319c632324e821c authored almost 3 years ago by Nikita Sobolev <[email protected]>
This fixes a regression where `iter(x)` could generate a false
positive if `x` has a type varia...
This fixes some regressions.
eca4c300111a8c12e402acbada35badbd3c705f8 authored almost 3 years ago by Jukka Lehtosalo <[email protected]>Fixes some regressions.
Context: python/typeshed#7258
bb1fda39eb4a9cf370086987760e4dc113b8b859 authored almost 3 years ago by Jukka Lehtosalo <[email protected]>784b67ec0b1daa42c128396f247987bb0c80a3d3 authored almost 3 years ago by 97littleleaf11 <[email protected]>
* Adds docs about `Enum` type
* Better structure
bd37ab895f15b5ad04586d14155ebb14aceeb1eb authored almost 3 years ago by Nikita Sobolev <[email protected]>
Closes #11742
Related #11743
Related #11289
Related #11700
This fixes a minor regression.
8157a6f65bf7fec004b5cc7b3ea01f8cf2b420e8 authored almost 3 years ago by Jukka Lehtosalo <[email protected]>Closes #11948
1321e9e78dda815e14d16338f01903b449379bdd authored almost 3 years ago by Nikita Sobolev <[email protected]>
We used to infer a callable in a protocol against all overload
items. This could result in inco...
2c9a8e731785fac1d1ef342863b70854de16423a authored almost 3 years ago by 97littleleaf11 <[email protected]>
2d30dbaa34eab9d7519e440480f360fc9a1e65c3 authored almost 3 years ago by 97littleleaf11 <[email protected]>
Co-authored-by: Shantanu <[email protected]>
b22c4e4a2e9f56480724a45e159552c922af47dc authored almost 3 years ago by Bas van Beek <[email protected]>Add a link to Python doc about Python C API, which is a friendly tutorial for beginners.
66982637944451401a88edc95be1fed6f3a87baa authored almost 3 years ago by 97littleleaf11 <[email protected]>
Instead of printing `Union[Literal[X], Literal[Y]]`, these are now
printed as `Literal[X, Y]`.
The WrapperGenerator is an abstract class for wrapper generation,
originally from generate_wra...
Fixes for https://github.com/python/typeshed/issues/7307
Amusingly, the evil runtime module tha...
Basically a follow up to #12203
New errors in typeshed from this:
```
_decimal.__libmpdec_v...
Co-authored-by: hauntsaninja <>
f98881cbdf516484fbee30c38ace8d7acdd5ffaf authored almost 3 years ago by Shantanu <[email protected]>9af578d796564617fc5d110b66e84087e23c41ea authored almost 3 years ago by Alex Waygood <[email protected]>
36d50d68ba350ebd167a604a2bb3906ac720911f authored almost 3 years ago by Marc Mueller <[email protected]>
85fc99c99e7e2afc5896de1842d52e6e6cd55197 authored almost 3 years ago by Alex Waygood <[email protected]>
* Implement more checks in ircheck
Check op/register validity and check type coercions for re...
c7365efceb24587c9b71066c360e167bcdce536a authored almost 3 years ago by jhance <[email protected]>d02db50c3f187871545b1a560a2d93fffcb53e7e authored almost 3 years ago by Tuomas Siipola <[email protected]>
Fixes #12197
This essentially walks back changes in #12023 that apply to
function-like thing...