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
Self-compilation needs some stub packages. I'm adding them to a separate
since they are not nee...
Currently cache_dir does not expand user home directory, which results
in counter-intuitive beh...
Resolves #4675, resolves #9981.
Additionally, we always ignore site-packages and node_modules...
6bfc2dbc0e877408f5b70b86818683cd211c0031 authored almost 4 years ago by Shantanu <[email protected]>11d4fb25a8af7a3eff5f36328a11d68e82d33017 authored almost 4 years ago by Iulian Onofrei <[email protected]>
Add support for loading tuple literals using `LoadLiteral`. The literal tuple objects will
be c...
Redesign the implementation of constant `PyObject *` values, such as string and integer
litera...
9cff22cf9f6e176970f5095da7a848ff106c39d0 authored almost 4 years ago by Marco Gorelli <[email protected]>
Fixes #10035.
090bfa905b29fdfc840d6b5be89be5d5261db2d3 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Even if we assume that typeshed stubs don't change, we need the deps
when bringing in new stubs...
A special case for dealing with blocking errors caused false positives
when following imports. ...
File watcher state for files added to the build wasn't updated
correctly, resulting in crashes....
38bad9caab9b14b9fe4efdc620a003c373fbec8a authored almost 4 years ago by Sam Bull <[email protected]>
Fixes #10011
I think this is just vestigial from some initial debugging
Co-authored-by: ha...
9e0e23e97653dab3a558d34340486e7a66f7d6f0 authored almost 4 years ago by Shantanu <[email protected]>e43be0df1d288e8610308da334f89660a70ed3d8 authored almost 4 years ago by Jesús Cea <[email protected]>
Previously giving an invalid value to `--custom-typeshed-dir` could
cause mypy to crash.
Thi...
4d5a1bc75224e1c532557861261becac7d8fdf47 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Now you can sync the current typeshed master by just running
`misc/sync-typeshed.py` without an...
In some cases the VERSIONS file can't be found, and it's kind of hard to debug.
844960680c1d5e24d05f1fa9d1357c4383cba2fe authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
These haven't been working for a long time. Typeshed includes
a mypy test already, so it's fine...
These are no longer relevant after we removed the typeshed
submodule in #9973.
This is a follow up for #9973
Co-authored-by: Ivan Levkivskyi <[email protected]>
90feccd665a0abde58d5ccabb7cfde872a3aa075 authored almost 4 years ago by Ivan Levkivskyi <[email protected]>
Support the new structure of typeshed (python/typeshed#2491) and only
bundle stdlib stubs with ...
I'll add mypy/typeshed back in another commit as a copy of a
typeshed subset.
This is preparati...
ba037888eccd0f63e193d0fefd8f4e9265b8e3d3 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>68a0c654f2c73b0ee6afaaf50a02102bc8ac6ef6 authored almost 4 years ago by Gustav Gränsbo <[email protected]>
The parameter not permitted with
--namespace-packages is --explicit-package-bases,
there is no...
For whatever reason, these options get misused a lot and cause a lot of
problems. #9954 is only...
This speeds up the list_remove microbenchmark by about 30% and the
list_index microbenchmark by...
This makes us more compatible with CPython, which interns (some)
string literals.
This speed...
9e1324d4566c1dcafaeaf2ec75ad14f2969eec0a authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
Since we only use relatively few features supported by the original argument
parsing code, much...
Add specialized argument parsing functions for these simple signatures:
1. No arguments
2. Sin...
It looks like pip just dropped Python 3.5 support, but we are not quite
yet ready to do it (as ...
Allocate a vectorcall function pointer as a struct field for native
classes that include `__cal...
Implement faster argument parsing based on METH_FASTCALL on supported
Python versions.
Use ...
5d2ea1690f3fb0d6c4ba2c588cfdda8bdf22e5f5 authored almost 4 years ago by Jukka Lehtosalo <[email protected]>b53507213ed805bdfb377aec48ade44a3ccd7424 authored almost 4 years ago by Ivan Levkivskyi <[email protected]>
An assertion expected the second result of method `ExpressionChecker.check_call` to
be a `Call...
Previously this would throw an error, however according to PEP 589
.get() should be allowed for...
Use the new generic built-in type syntax (list[t] etc.) in the cheat sheet,
getting started and...
* [stubdoc] fix typo
* [stubgenc] Add Callable to _DEFAULT_TYPING_IMPORTS
* [stubgenc] Fix...
3442b70c0ea8179ea6ddd6ec86fd65be75dd24de authored almost 4 years ago by Sergei Izmailov <[email protected]>I removed the documentation for this error already in #9675.
This list of modules here that w...
a540a1a33d5df2611975a74b8234154fd86722cd authored almost 4 years ago by Shantanu <[email protected]>
This should cover the current state on master, as previously
discussed / implemented across #97...
PEP 647 is still in draft mode, but it is likely to be accepted, and this helps solve some real ...
fffbe88fc54807c8b10ac40456522ad2faf8d350 authored almost 4 years ago by Guido van Rossum <[email protected]>
__class_getitem__ and __init_subclass__ are always classmethods, even if
they aren't decorated....
92923b2ed8085a38c353382f805c9e2e8716e717 authored almost 4 years ago by Chad Dombrova <[email protected]>
e9edcb957f341dcf7a14bb7b7acfd4186fb1248b authored almost 4 years ago by Ashley Whetter <[email protected]>
Adding these since they are trivial to implement.
3497675c5f7917eb0e8ad4b7e2b7f3bc4cfd52dc authored almost 4 years ago by Jukka Lehtosalo <[email protected]>
This stopped working because of typeshed changes in
b884a394b4406b647317668a28538821ca08c056. T...
The test case wasn't actually testing the primitive, since all the
calls were in the driver, wh...
Fixes mypyc/mypyc#792.
Always give __init__ an implicit None return type so that programs lik...
0c5936e08975ce1936c86f559d128cf25d30000e authored almost 4 years ago by Thomas Johnson <[email protected]>Fixes #9888.
I applied the following patch to typeshed and ran self check:
```
+@overload
...
Use `PyLong_FromLong` instead of `PyLong_FromSsize_t` since it's faster
(at least on Python 3.8...
Since my checklist in https://github.com/python/mypy/issues/9761 is
almost complete, it's time ...
Co-authored-by: hauntsaninja <>
5f5d90eee23b809185145f6da7b18a3ca41b4879 authored about 4 years ago by Shantanu <[email protected]>Co-authored-by: hauntsaninja <>
cfdb1f1f4c46f170f2501fcf503440b2c37a6a96 authored about 4 years ago by Shantanu <[email protected]>* new upload pypi script
CI now builds the pure Python wheel and sdist.
Use the Github API t...
Fixes #8629, fixes #8523.
This creates a new page to document issues arising from discrepanci...
6e8c0cd3ef7a375e143faf237312004adcfca7d6 authored about 4 years ago by Shantanu <[email protected]>See first test case for the scenario where this causes issues (the second test case is already h...
28f92acae611ab06a72ac827e36373c198a9e4f4 authored about 4 years ago by Ivan Levkivskyi <[email protected]>
Currently only files can be specified on the command line if files are
specified in mypy.ini. ...
mypy_primer was temporarily removed in #9769. This brings it back.
See https://github.com/pytho...
Co-authored-by: Ivan Levkivskyi <[email protected]>
3c275a3dce233ab6d53abc623069ccef3250f127 authored about 4 years ago by Ivan Levkivskyi <[email protected]>
This prevents users from hitting asserts before PEP 612 support is fully
implemented.
Co-aut...
8296a3123a1066184a6c5c4bc54da1ff14983c56 authored about 4 years ago by Shantanu <[email protected]>Co-authored-by: Ivan Levkivskyi <[email protected]>
07a64450cec61fafc98838d9e32d6dae63568a93 authored about 4 years ago by Ivan Levkivskyi <[email protected]>Tidy things up a bit, and improve documentation in code.
These mostly, but not exclusively, t...
e9f8a177d79df978c64ff924d3fb39b2e3cd0cbc authored about 4 years ago by Jukka Lehtosalo <[email protected]>
The new class is a direct subclass of `Value` instead of an `Op` subclass.
It essentially chan...
This speeds up the `if_true` microbenchmark by about 5%. Code size is also
reduced.
Co-authored-by: Ivan Levkivskyi <[email protected]>
48312289155bb203ad12249a87692fa841e7478c authored about 4 years ago by Ivan Levkivskyi <[email protected]>
It was a bit odd that the module started with a long comment about
serialization, which isn't e...
Since `IntOp` is also used as a namespace for op constants, it's common to
refer to the class n...
This continues work on mypyc/mypyc#781.
87f867c548824adecca6420383abba1662c33fa5 authored about 4 years ago by Jukka Lehtosalo <[email protected]>
Since they are only used during the IR build, define them in
`mypyc.irbuild`. Also simplify the...
This was introduced in #9800.
b7c6fa3d2822662a510223fbf82f5d0d08af7bb5 authored about 4 years ago by Jukka Lehtosalo <[email protected]>
Add new helpers for generating methods that reduces the required
boilerplate. Switch several ex...
Speed up multiple assignment from variable-length lists and tuples.
This speeds up the `multip...
Without this option, pytest can print out many lines of garbage
if there are more than 8 parall...
Remove `mypyc.ir.ops.Environment`. Represent potentially uninitialized variables
explicitly in...
See https://github.com/python/cpython/blob/master/Include/cpython/object.h#L456
Fixes #789.
...
Instead of maintaining symbol tables in `Environment`, they are maintained in
`IRBuilder` and d...
Co-authored-by: Ivan Levkivskyi <[email protected]>
dc251783ccb9baa48fc62d109a88854ac514816d authored about 4 years ago by Ivan Levkivskyi <[email protected]>28d123f025c8f2ed8bb1e6b4590f3ba023f27b3a authored about 4 years ago by Abhinay Pandey <[email protected]>
Co-authored-by: Ivan Levkivskyi <[email protected]>
39698d52e933a30cd744c25c388c514997b6b95f authored about 4 years ago by Ivan Levkivskyi <[email protected]>efa62358bd98943edd624779684b58be38799072 authored about 4 years ago by Jukka Lehtosalo <[email protected]>
Fixes #9340
As mentioned in the feature request, mypy now gives more information about the mi...
eb0bf114743e4b2a65582e83feacb184eb5c6d64 authored about 4 years ago by Abhinay Pandey <[email protected]>
Several tests rely on getting the default width of a terminal for
rendering test output. Some P...
This gives a new error code for code like this:
```
# Foo and Bar don't match
Foo = NamedTu...
The release of pytest 6.2 broke mypy's type checking of itself, since pytest 6.2 drops support f...
05d9fb15dcec8bde4e7184ca387e7d8acea68792 authored about 4 years ago by Shantanu <[email protected]>ac324950a7c95f0e51d72ae18fbd8652d37f7847 authored about 4 years ago by rhkleijn <[email protected]>
This is the successor to https://github.com/python/mypy/pull/9632. Things should basically be as...
9c54cc3f1c73150992345350be834f2987b3967d authored about 4 years ago by Shantanu <[email protected]>Co-authored-by: hauntsaninja <>
cdd5badebee3ed62be8671eb0236fe16e7510eae authored about 4 years ago by Shantanu <[email protected]>35e5031b30e25faf9aff6caacfe9b8f185fa430e authored about 4 years ago by willtryagain <[email protected]>
This fixes an issue where this code resulted in an unbound local `p`
error:
```
def f() -> ...
Implements dict clear primitive for improved performance.
Related ticket: mypyc/mypyc#644
98eee40c8e6b111361b3e2d69059b445852fbda3 authored about 4 years ago by vsakkas <[email protected]>Co-authored-by: hauntsaninja <>
88f76ee0e95674cc1ff4c723a86156823fb06291 authored about 4 years ago by Shantanu <[email protected]>
Instead of generating names for ops when building IR, we now generate names
immediately before...
A sample bytes arg of b'b' makes the example hard to parse
06589112d2513edeb90386613c2f201e72b08059 authored about 4 years ago by Frank Dana <[email protected]>Fixes #5744
Updates the attrs plugin. Instead of directly copying attribute type along the MR...
fc212ef893a0c3e6d500be89aa4d9302c1219595 authored about 4 years ago by Nate McMaster <[email protected]>Fixes #7520
Updates the dataclasses plugin. Instead of directly copying attribute type along ...
98beb8e8febfd39992b0ba69ba15c0b2362b847d authored about 4 years ago by Nate McMaster <[email protected]>Co-authored-by: hauntsaninja <>
fdba3cd495b657995a7283063afd1e86ff49165d authored about 4 years ago by Shantanu <[email protected]>Implements list insert primitive for improved performance.
Related ticket: mypyc/mypyc#644
109d05edca23d6f94542fb28e11e3cb0b6f7e159 authored about 4 years ago by vsakkas <[email protected]>Co-authored-by: hauntsaninja <>
d1d999c0baaf7218a750bbdf8df7b78e03bfe8fb authored about 4 years ago by Shantanu <[email protected]>6e5286e5242519bcba8f005900312a375b0e7688 authored about 4 years ago by Shantanu <[email protected]>
Resolves #7907
Co-authored-by: cdce8p <[email protected]>
Co-authored...
Previously the message accidentally converted all identifiers to
lowercase. By rephrasing the m...