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
53465bd7494efa93ebec40b9ee4e7efc3c9ea35f authored over 2 years ago by Alex Waygood <[email protected]>
64035bdc52c76225ec37887e9272b2d7fdf8fd9c authored over 2 years ago by Nikita Sobolev <[email protected]>
Resolves #13173
Co-authored-by: hauntsaninja <>
28258d076b02af750b18e76fc69290579e9fc7e0 authored over 2 years ago by Shantanu <[email protected]>### Description
This should fix Issue #13061 .
Mypy should now raise an error when it enco...
2c152e66142aabdb7730fd55a10bd506bc0d0208 authored over 2 years ago by Aurélien Jaquier <[email protected]>This reverts commit d22899f2166c1adeb9daf0326cc068beca4f7bb9.
98f24f4a617f445bd61a2dca18b5b27b11db463c authored over 2 years ago by Jared Hance <[email protected]>Co-authored-by: Shantanu <[email protected]>
d22899f2166c1adeb9daf0326cc068beca4f7bb9 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Use `mypy.test.config.test_data_prefix` instead of hard coding it. This
should fix mypy wheel b...
fbbcc50dae3c9f88fb5d1e22f4d0324cc5a3d618 authored over 2 years ago by Alex Waygood <[email protected]>
We run mypy/pyinfo.py as a script, and this means that mypy/types.py
could be picked up instead...
b8bad23e3eb86560a41e7c16722d37ddccbfbc43 authored over 2 years ago by Patryk Gałczyński <[email protected]>
Co-authored-by: hauntsaninja <>
e85ecaf5040a807b60929e9ba09e782aec01c774 authored over 2 years ago by Shantanu <[email protected]>5c474fd4927c6bec52135b00bd647a9290ce660f authored over 2 years ago by Shantanu <[email protected]>
Co-authored-by: KotlinIsland <[email protected]>
1de7dca9798c13781fc936063822484203276b11 authored over 2 years ago by KotlinIsland <[email protected]>Linking #12237
ed5a2a00cb2e30349614d9b5328f709c367ff1c2 authored over 2 years ago by Shantanu <[email protected]>Fixes #12730
Co-authored-by: mrolle45
37080f5ef7aa78f891867c212d280b7c4e10bb4e authored over 2 years ago by Shantanu <[email protected]>Fixes #12931
111a7da923b2c63e4c96ba5c387fdb19f101dc61 authored over 2 years ago by Shantanu <[email protected]>
This greatly reduces complexity as each type can determine for
themselves if they are represent...
6635b4701a369c4de600e3c4647de42b0bc5d74e authored over 2 years ago by Shantanu <[email protected]>
This PR hopefully resolves https://github.com/python/mypy/issues/8650.
The main change is the...
6f93fc16e17fff1c4c802db3dadd009fa094e38c authored over 2 years ago by Patryk Gałczyński <[email protected]>
After this change, narrowing to `Ellipsis` works similarly with
regards to narrowing as `None` ...
Fixes #12605
Fixes https://github.com/mypyc/mypyc/issues/925
### Description
Fixes #11288
Warns people to not use `NoneType` as a type annotation, as r...
baf4af41e2c4f6c585723f8458cfdd429af13453 authored over 2 years ago by Jakub Strnad <[email protected]>
This fixes a recent regression introduced by the change to
use sys.path
Fixes #12956
8a974e18d68daa59d6ab086dca81557c7d6dcd18 authored over 2 years ago by Shantanu <[email protected]>8428af7e23c582bf1e088777a83888cad98cb233 authored over 2 years ago by anilbey <[email protected]>
3e978b2e3d7a79f9fd3a5a4ac438762f1af13613 authored over 2 years ago by davfsa <[email protected]>
This reverts commit 6ab2e85da006a272ec47d3db36d7769465375ecd.
8e609b2d180b278f1cc2ddea88014795ab9d3e6f authored over 2 years ago by Jared Hance <[email protected]>Co-authored-by: Shantanu <[email protected]>
6ab2e85da006a272ec47d3db36d7769465375ecd authored over 2 years ago by Jukka Lehtosalo <[email protected]>
We need to flush keep alives also after a multiple assignment, as otherwise
the generated IR wi...
This PR makes mypyc flush keepalives on operator assignment statements, to prevent accessing und...
d3e0db77f4aab46d3a748ebc7b5ca93435e54765 authored over 2 years ago by Zsolt Dollenstein <[email protected]>16363d3b9337c83ff5a18176cedb88057108a7d4 authored over 2 years ago by anilbey <[email protected]>
fd02457a6b52ce9a604bda7efd20eb17298dd3d8 authored over 2 years ago by anilbey <[email protected]>
It is not referring to keyword arguments, but to arguments in general.
Fixes #8805.
ca6357e230810d7a75e38487b33872ca530fcb63 authored over 2 years ago by Zsolt Cserna <[email protected]>See https://github.com/mypyc/mypy_mypyc-wheels/pull/35 for motivation
We also need fewer lxml...
227e50d0adae465cca1bac84ee85ed3eeae918e7 authored over 2 years ago by Shantanu <[email protected]>Co-authored-by: hauntsaninja <>
4479e0c2a75b7b802adf628034fa83beee9572c1 authored over 2 years ago by Shantanu <[email protected]>5b094d5a49e301bb8944e13ad16bbe947b82317f authored over 2 years ago by Shantanu <[email protected]>
Some packages may take a very long time to import, which can spuriously
trip the timeout in Mod...
- Fixes https://github.com/mypyc/mypyc/issues/924
- Fixes https://github.com/mypyc/mypyc/issues...
Source commit:
https://github.com/python/typeshed/commit/b145b32aa988bcb0c85ece32ce64df521fcafa...
Modify signature of stubgen.main to accept a user-provided list of
arguments. This allows users...
Co-authored-by: Ivan Levkivskyi <[email protected]>
ccfbfc1b2a238ae83267b625d12c49bc9e538794 authored over 2 years ago by Ivan Levkivskyi <[email protected]>
Attributes can still be partially typed (e.g. `<partial list[?]>`) after
a parent-class definit...
Fixes #12489
49b4b3da336cefb2aceb13ee721b5aa7b15bf8e0 authored over 2 years ago by Stanislav K <[email protected]>Fixes #12787.
Mypy currently emits a false-positive error for this snippet of code, even thou...
1fedf2c1adfcaccf7c19adbc8dee5cddebdd5d33 authored over 2 years ago by Alex Waygood <[email protected]>Fixes #13090
Co-authored-by: Ivan Levkivskyi <[email protected]>
b0c1556c145a8b1fbd613b55d2144b8757baed54 authored over 2 years ago by Ivan Levkivskyi <[email protected]>Fixes #13091
Co-authored-by: Ivan Levkivskyi <[email protected]>
ce891e32d4306df2b9a8bbcb4b88dae9750aa16c authored over 2 years ago by Ivan Levkivskyi <[email protected]>* Sync typeshed
Source commit:
https://github.com/python/typeshed/commit/91d6383d9d1ca38157c...
eaf60916a494ff8d36cab05331205d2d4bfe38bc authored over 2 years ago by Poruri Sai Rahul <[email protected]>
This also fixes https://github.com/mypyc/mypyc/issues/917
RE above, the root issue is that my...
86aefb14ffb92975ccd312f12c65919b26002c8d authored over 2 years ago by Richard Si <[email protected]>Co-authored-by: hauntsaninja <>
914297e9486b141c01b34593938fdf423d892cef authored over 2 years ago by Shantanu <[email protected]>
When deserializing from cache, FuncDef.arguments is not set, so
check before use.
a4ae0adb6fb0872042e0459f915254140df28b5e authored over 2 years ago by denballakh <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
1c1f3495772a4f02c7a0e646466d2c35a69c9813 authored over 2 years ago by bruno messias <[email protected]>Co-authored-by: hauntsaninja <>
f663828a66900a438c4a4be6f036c95c46636551 authored over 2 years ago by Shantanu <[email protected]>Work on #5425
Co-authored-by: Wesley Wright <[email protected]>
203bd64d8c14e8ddbed7911eb6f8f8aa61d728de authored over 2 years ago by Wesley Collin Wright <[email protected]>Fixes #12689
We always hid e.g. `import concurrent`, but looks like mypy
never hid `from con...
### Description
Fixes #6172
If an unannotated converter function or a lambda expression is...
5039c0fe44a7592b2fcb07cead49d921ecea211f authored over 2 years ago by t4lz <[email protected]>Add various C primitives that will be used to support native ints.
The primitives aren't used...
eb1b1e007e7fd1e976e6dd0f49a71b662a30a2d6 authored over 2 years ago by Jukka Lehtosalo <[email protected]>I only cover few most common situations. If this will show to be useful, we can expand the scope...
145d8a41b17ab1ba8707589be9cb5d56bbebd0ea authored over 2 years ago by Ivan Levkivskyi <[email protected]>
https://github.com/python/typeshed/pull/8042
https://github.com/python/typeshed/pull/8043
http...
Some IR and codegen changes that help with native int support.
This was split off from a bran...
ddbea6988c0913c70ed16cd2fda6064e301b4b63 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
The main substance here modifies mypy/constraints.py to not assume that
template.items has leng...
This is the version of filelock that includes py.typed
Co-authored-by: hauntsaninja <>
3833277fc292c9d4a514337b244d146228f1776e authored over 2 years ago by Shantanu <[email protected]>9b4bce9065cbef6185fbc77f2849b63dc9e5e293 authored over 2 years ago by Alex Waygood <[email protected]>
c3e32e33b37b13d08182b71dedba5c184e4ee216 authored over 2 years ago by Alex Waygood <[email protected]>
7e38877750c04abfd436e6ad98da23d6deca4e8f authored over 2 years ago by Jingchen Ye <[email protected]>
The mypy logo wasn't loading on https://mypy.readthedocs.io/ because
it's referenced via an htt...
Fixes #12930
8153e47b45247c81ba9792ab46ab788513613f6b authored over 2 years ago by Alex Waygood <[email protected]>
Add minimal support for type checking native int types.
Currently `mypy_extensions.i32` and `m...
Treat generators with await as async.
d21c5abcfba7cbae4398bdc075471e2ecc565e1d authored over 2 years ago by jhance <[email protected]>Previously we sometimes generated an if statement with an empty body.
1636a0549670e1b75e2987c16ef26ebf91dfbde9 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
asyncio.coroutine has been removed. I don't think this test case is
particularly useful.
Co-...
c2055280ab8f41382a584dc186099755b3cf014e authored over 2 years ago by Shantanu <[email protected]>Co-authored-by: hauntsaninja <>
0628e09ede4c81b913e859c750c581fbb85fa481 authored over 2 years ago by Shantanu <[email protected]>Closes #5701
This replaces the old hand crafted search code that was more fragile.
2004ae023b9d3628d9f09886cbbc20868aee8554 authored over 2 years ago by Ashley Whetter <[email protected]>
The plugin may add attributes that are needed to perform the bound
check.
Fixes #12876.
b07018cd024cc9d15d7fc977148c2adb5c3e5527 authored over 2 years ago by Jukka Lehtosalo <[email protected]>35b4d8a0279e91ef6cc0db126844ddcf263b161f authored over 2 years ago by Erik Kemperman <[email protected]>
2051024c07cd361352e081884db0a061221a9aab authored over 2 years ago by Erik Kemperman <[email protected]>
568b98a6f08205cd364a2511f8c8873f67e8b879 authored over 2 years ago by Alex Waygood <[email protected]>
Reverts #12889
Co-authored-by: hauntsaninja <>
74b35bef35ad5a7b1aa635f52ffcfd850eadc589 authored over 2 years ago by Shantanu <[email protected]>Authored by @KotlinIsland
Co-authored-by: KotlinIsland <[email protected]>
f08c57eb1cf16bb3fb999323bd3f139bd178fd10 authored over 2 years ago by Shantanu <[email protected]>
Co-authored-by: KotlinIsland <[email protected]>
Co-authored-by: Shantanu <...
Fixes #12615.
As discussed in the linked issue, this PR would put a filesystem-based lock aro...
07edc92b71918f8975357b98c2df96a7a2f2aead authored over 2 years ago by Erik Kemperman <[email protected]>In a microbenchmark right shift was a bit faster.
d3ef642a0c2cc5b4784c2c632cee9bdcfa10e8b2 authored over 2 years ago by Jukka Lehtosalo <[email protected]>Fixes #12868.
0054046c8c147a5190769bde21eb08615c16038e authored over 2 years ago by Jukka Lehtosalo <[email protected]>Came up in #12825
b55dcf534c07eb4d25bbbf7f5ba67f5edf5d0a92 authored over 2 years ago by Shantanu <[email protected]>
Add a --mypyc-debug option to pytest that compiles a test normally and
then runs the resulting ...
Resolves #12837
Co-authored-by: hauntsaninja <>
87e73feb0ac85d9d0d55ad4e367876d0c7fbe0a2 authored over 2 years ago by Shantanu <[email protected]>
Use PyObject_CallNoArgs and PyObject_CallOneArg to replace
PyObject_CallFunctionObjArgs in lib...
Co-authored-by: hauntsaninja <>
24ef8d06a1edad9074990624dd6d955a9e0c0561 authored over 2 years ago by Shantanu <[email protected]>291c39d5587d96b8f42fcebb3a6aa65e9eff1276 authored over 2 years ago by 97littleleaf11 <[email protected]>
Merge a cast op followed by a branch that does an error check and adds a
traceback entry. Since...
Closes mypyc/mypyc#931
Closes mypyc/mypyc#923
Related CPython modification:
python/cpytho...
c8efeed44d4c90cc05cf196f6315410fda468d70 authored over 2 years ago by 97littleleaf11 <[email protected]>
Borrow operands of tagged integer operations to reduce the number of
incref/decref operations (...
Co-authored-by: hauntsaninja <>
c986e54124b967587fbc674029ebe503c75d3a60 authored over 2 years ago by Shantanu <[email protected]>Suggested in #12825
Co-authored-by: hauntsaninja <>
16d27a2628ef8837f8d180c1e9d248d4c3f2fe4c authored over 2 years ago by Shantanu <[email protected]>
We don't support running on Python 3.5 or lower anymore, so the max call
is unnecessary because...
Resolves #12819
19e9f2136fd46c662f1066a4894edf48173942f4 authored over 2 years ago by Shantanu <[email protected]>Co-authored-by: hauntsaninja <>
9d63fa52e335bca8322948bb2aedf6253e1df4bb authored over 2 years ago by Shantanu <[email protected]>Fixes #12717
f19a711eae747e2e5525bf0b0baaa3d3ae972fbd authored over 2 years ago by Fabian Keller <[email protected]>Fixes #12508
927a9ba05d7e1ca495c62e555b937e74a01c4e57 authored over 2 years ago by Ramazan Elsunakev <[email protected]>Given a large codebase with folder hierarchy of the form
```
foo/
company/
__i...