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
Closes #11218
Co-authored-by: Shantanu <[email protected]>
032f3b616854c54cd7903f68fd55ff73a7907884 authored over 3 years ago by Nikita Sobolev <[email protected]>Quick review of changes:
* I had to move all class-level values into self. definitions, becau...
7f89cf8f98efff53de267dd28a8002f99f172a84 authored over 3 years ago by Nikita Sobolev <[email protected]>
Currently TypeChecker.named_type is been called inside
MemberContext.builtin_type thus this PR...
1d040591d4772b0ecd5ab8bb47c07e389041512c authored over 3 years ago by Daniel Mendelsohn <[email protected]>
Closes #11232
Closes #7399
ed0cc78a5cbdfcb9724cf1f294f7b5cbbd1d6778 authored over 3 years ago by Nikita Sobolev <[email protected]>
It does not mention `.format()` anymore.
Closes #10979
209a7193feb4bbfa38d09232b0a5a916e9d2e605 authored over 3 years ago by Nikita Sobolev <[email protected]>Closes #11212
Previously `mypy` was ignoring `lambda` scope in `handle_cannot_determine_type`...
d37c2be0f7a2002a0a8c160622d937518f902cc7 authored over 3 years ago by Nikita Sobolev <[email protected]>Closes #11155
e0b4b05b8aafa328942b84233756a64be4950e1a authored over 3 years ago by Nikita Sobolev <[email protected]>Authored-by: @kprzybyla <>
8e82171a3e68a5180fab267cad4d2b7cfa1f5cdc authored over 3 years ago by Shantanu <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/a9227ed98589bf960b1c9ee2da69890171f8df...
Fixes #10248
The crash due to dataclasses.field was fixed in the recent PR #11137, but the er...
3ec0284513359810bb5b149f94eec236d2e8da6c authored over 3 years ago by Hiroshi Ogawa <[email protected]>Fixes #11157
For --warn-unused-ignored, currently Errors.used_ignored_lines keeps track
of ...
Closes #11172
4e7c2a0e0dc69295bc3f2d93d4e34964c591d473 authored over 3 years ago by Nikita Sobolev <[email protected]>
All enums in mypy are unique. Eventhough, current state of enum_plugin
does not support @uniqu...
Fixes mypyc/mypyc#702 by replacing "'" with "__redef__",
although this assumes nothing else wil...
I was always looking for it, but I always had to scroll further for "documentation" link.
It us...
Fixes mypyc/mypyc#759 and probably some other issues. Including only
the change to coerce the R...
Related issue: #1184
44edc1a6242bad378fb809e12babbbc2baa54178 authored over 3 years ago by 97littleleaf11 <[email protected]>Closes #9175
579180ab26dcfdad7d576a7d704c8140da64cbd6 authored over 3 years ago by Akuli <[email protected]>
While working on #11047 I've noticed that mypy reports the same error
for both collection.name...
Refs #11155
b7d8724f5028fff5e6c1bfe86334bcdec79177dc authored over 3 years ago by Nikita Sobolev <[email protected]>
The rounding was incorrect for some negative values, because of a bug
related to the tagged int...
`return` (or any other statement) after a `while True` with no `break` condition
will never be...
Closes #11075
91f299edff3836df29a36a5490a21c0cfb6e0a71 authored over 3 years ago by Nikita Sobolev <[email protected]>Closes #11020
* Fixes mypy crash on protocol with contravariant var
* Fixes how `infer_con...
23e02e20f50255bd5b3217d224d1f9c77d85f6ce authored over 3 years ago by Nikita Sobolev <[email protected]>Fixes half of #11060
Co-authored-by: hauntsaninja <>
d7bb8400e8fe48bb8a31bca6a38fef16420550bb authored over 3 years ago by Shantanu <[email protected]>a7d6e68541e1c6b52338dbe2e3f4a7055a033483 authored over 3 years ago by Nikita Sobolev <[email protected]>
fab534bcc74806d76dba66264490c0b3eddf39dc authored over 3 years ago by Michael R. Crusoe <[email protected]>
### Description
Fixes #10801
We can now detect assignment that are not matching defined...
8ac0dc2b87c53bbe0f0633ba80a3136390cab668 authored over 3 years ago by Nikita Sobolev <[email protected]>Co-authored-by: Shantanu <[email protected]>
b3ff2a683bd41a176c597d3c3ba65f6a31f805c5 authored over 3 years ago by Nikita Sobolev <[email protected]>Add needed `covariant=True` for example to pass type checking at `page.first_chunk()` as intended.
b165e42ceed949a89cb28f5b5d0c194af1a0298f authored over 3 years ago by ryan-gunderson <[email protected]>b94b04c483f1109becc00f35d441f48e5695b82f authored over 3 years ago by Christoph Tyralla <[email protected]>
Historically --strict was only supported on the command line, but
commit cb0ceb02848494f3dab2d9...
Closes #11105
04ff70ca604a4c63d9f7fe518a2c5bc893cc59cd authored over 3 years ago by Nikita Sobolev <[email protected]>836ff14af53af54295d8ccd5fc6bdd6e83e599b4 authored over 3 years ago by Nikita Sobolev <[email protected]>
Fixes #11079
c6e8a0b74c32b99a863153dae55c3ba403a148b5 authored over 3 years ago by Nikita Sobolev <[email protected]>Fixes #11089
130ba461b3590d7f34f326fbcfd1d913089765b7 authored over 3 years ago by Nikita Sobolev <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/e4c2c0f3021abac1078854da92a9ec14848b32...
Co-authored-by: hauntsaninja <>
5bfdce8fc77ca76f87977c9feaf49ee4e9fcc22c authored over 3 years ago by Shantanu <[email protected]>
Guido plans to remove PyCode_New from CPython CAPI.
See: https://bugs.python.org/issue45122
...
e2d8a507bac5d2652c72a4a4bc62349d865cd076 authored over 3 years ago by Dong-hee Na <[email protected]>cc224ca26d565c6701e2e96ac76e66e2450f9d33 authored over 3 years ago by Nipunn Koorapati <[email protected]>
d263a9698fb59d7a1ae0c7817ef53bb272c8d875 authored over 3 years ago by Daniel Hahler <[email protected]>
4b2d3b3fe5d51e3542786fa4274086a3c240528e authored over 3 years ago by Shantanu <[email protected]>
Fixes #11007, fixes #10899, fixes #10647
Since the initial implementation of TypeGuard, there...
05f38571f1b7af46dbadaeba0f74626d3a9e07c9 authored over 3 years ago by Shantanu <[email protected]>* [stubgenc] Fix bug when inferring signatures with no args
* [stubgenc] Add self arg when it...
e654572fa9627f455825817699a57ee4c5dcbf0c authored over 3 years ago by Chad Dombrova <[email protected]>Closes #11062.
3ef8040a4c9b9ad05368f593749125b4c7f8067d authored over 3 years ago by 97littleleaf11 <[email protected]>Closes #2112.
This PR changes the FunctionLike.items from method to property. By
doing so, ...
c603e13ab02b1eb33d92df9f0dee289ce4f3d413 authored over 3 years ago by Max Marrone <[email protected]>
Fixes #10483
Tested manually using importlib.metadata
Co-authored-by: hauntsaninja <>
bbea3b56297d3d966b9a98900c218df6616fec85 authored over 3 years ago by Shantanu <[email protected]>
Related issue: #1184
Follows up to #10569, #10685
This PR:
* Refactors `Scope`
- Replace...
1. Changed an outdated example to an original one from https://github.com/python/typing/issues/1...
b17ae30d1efe58095c61c1731c29bcfe4dd7065c authored over 3 years ago by Nikita Sobolev <[email protected]>5c4aea39ab6a14eeef85cc849d6057bebf2147a3 authored over 3 years ago by Ilya Konstantinov <[email protected]>
Per mypyc/mypyc#718, renaming the original function name in the module
mapping causes the __nam...
Optional check which disallows using implicitly true expressions (whose type has no __bool__ nor...
a72fab3b43b0c3ba40abfd4911ec653da5de7230 authored over 3 years ago by Ilya Konstantinov <[email protected]>
That's the last unsued import I found.
Related #11041
eb198f463dc6357674ae780fd4c58865aa2ce84a authored over 3 years ago by Nikita Sobolev <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/8e0e13a2d564010c682ac14531001ca037b9a2...
That is, support patterns such as:
```
if condition:
foo = Foo()
else:
foo = None
...
### Description
Closes #5580
Previously, the type of empty dicts are inferred as `dict[<noth...
8c5c915a89ec0f35b3e07332c7090e62f143043e authored over 3 years ago by jhance <[email protected]>
Support or expressions involving type guard checks.
Co-authored-by: Ivan Levkivskyi <ilevkivs...
2a1cea4d2ce233f345e8a515d6d0d5cd38c8d1ac authored over 3 years ago by Ivan Levkivskyi <[email protected]>Fixes #6568.
7576f659d42ee271c78e69d7481b9d49517a49f6 authored over 3 years ago by Timofey Kukushkin <[email protected]>fbedea5384939901102de86cf82058cf6552be8c authored over 3 years ago by 97littleleaf11 <[email protected]>
Speed up simple % formatting with bytes (%s and %b).
* Share the same tokenizer with string f...
f1167bc43866f6b1b663d97121e23a5cebe5f952 authored over 3 years ago by 97littleleaf11 <[email protected]>ba540f0d2abf6aaa586e9f4b4bdb615ba2175bc9 authored over 3 years ago by sed-i <[email protected]>
21055322ba1c2fac99d18560124a3eed07c426df authored over 3 years ago by Mehdi ABAAKOUK <[email protected]>
* Wrap singledispatch callable class in glue function
mypyc doesn't have support for calling ...
cd013d13e600539a6c2d7a667c95b6c4602e62ee authored over 3 years ago by pranavrajpal <[email protected]>
This adds a cache to the dispatching code for singledispatch functions,
which makes calling sin...
Add a C helper function for bytes and bytearray slicing.
644496828841035d097d7afd80b96081e0ea5c7f authored over 3 years ago by 97littleleaf11 <[email protected]>3970cc3baf98dd456927accb550659beb14ea0bd authored over 3 years ago by 97littleleaf11 <[email protected]>
Implements part of mypyc/mypyc#880.
5adb0a05c157d9f5afbdb048a6d06a3234586ab6 authored over 3 years ago by 97littleleaf11 <[email protected]>Implements part of mypyc/mypyc#880.
ba7b50c07886f744268d664adb5a6f026ce7be37 authored over 3 years ago by 97littleleaf11 <[email protected]>
Instead of generating a regular native function for singledispatch
functions, generate a callab...
This changes the implementation of singledispatch to look up the correct registered implementati...
0bde4b9e82e337f1b63d1e7dcc6922ed648e86f7 authored over 3 years ago by pranavrajpal <[email protected]>This PR speeds up FStrings using FormatOp and convert_expr.
6e48f7e18b39e5fdab594e111da133965081c728 authored over 3 years ago by 97littleleaf11 <[email protected]>3c935bdd1332672f5daeae7f3f9a858a453333d4 authored over 3 years ago by Michael J. Sullivan <[email protected]>
Fixes #10865
ed2b4c76cb8662942096de1cfbf08aa422a3b6f2 authored over 3 years ago by Tim Gallant <[email protected]>
Since PEP561-installed namespace packages only show up in
FindModuleCache as a side-effect, the...
This PR adds a tokenizer that convert a str.format() format string into literals
and specifier...
e7161ac06d6b05f6b59669d2d0a6b9406bb112bc authored over 3 years ago by 97littleleaf11 <[email protected]>
While we figure out what the plan is in coordination with black and
pip (see #10893), just pin ...
Add several run tests:
* chr()
* ord()
* decode()
* encode()
Similar to list and tuple, we can directly get length of bytes from
PyVarObject->ob_size.
I...
baea65a338e67a09a23158b4067b75e86de009a7 authored over 3 years ago by 97littleleaf11 <[email protected]>97a1b3f81f90ebc2739773cd949b92d891f47c4d authored over 3 years ago by jhance <[email protected]>
This test was original skipped because nesting a virtualenv inside of a venv on macOS was a prob...
e73432162b86f901c54e87d62858b0bdde062d24 authored over 3 years ago by Ethan Smith <[email protected]>
As part of doing this I upgraded the pep561 tests to support
incremental tests, and removed at ...
188b7d4b5cac113b05d6fbd2db7423f523cfd188 authored over 3 years ago by Jukka Lehtosalo <[email protected]>
Add a `targets` property and a `set_target` method to `ControlOp` to
enable generic processing....
Use `PyBytes_FromObject` for `bytes(o)`.
Use `PyByteArray_FromObject` for `bytearray(o)`.
Cu...
d991d19ed550c940a5b3634eb2c6c954e09293e0 authored over 3 years ago by 97littleleaf11 <[email protected]>d7fabc91adfdb37d9d6acf48278a267243fb002a authored over 3 years ago by Shantanu <[email protected]>
* Fix recursion issue with nested instances and unions
* Change to use `==` in `is_protocol_i...
743815861ce9b3758de81782efc2c911c0320c92 authored over 3 years ago by Peilonrayz <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/b2e429cd41347ce48a96feaa1681726d8f77fb...
14eaa1810ed92047ad5fe583065089d29043e435 authored over 3 years ago by hatal175 <[email protected]>
Fixes #9907
So far, method `TypeChecker.intersect_instances` generally reports an unreachable...
21991cf9d5c35b959d99042892c3e6a58e7f9bfb authored over 3 years ago by Christoph Tyralla <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/581b2d518041377069e2aeee969e7b2e86270f...
Resolves #1422
Co-authored-by: hauntsaninja <>
18ff207c96a2104a645da0d958d77aad1ff5e9aa authored over 3 years ago by Shantanu <[email protected]>Co-authored-by: hauntsaninja <>
7919e59a69b8301e27f1c02495f8c77d35584da9 authored over 3 years ago by Shantanu <[email protected]>In the spirit of #4814 (comment)
I'm not sure what the distinction between TypeVarDef and Typ...
2736edbbcc6273557d3e4acd5c7797dec1f7a59a authored over 3 years ago by Shantanu <[email protected]>
We currently assert that test-data is present in `mypy.test.config`;
delay that until we actual...