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
From python/typeshed#7894.
37fb21afe937be9da98446557244f3de5424ebf8 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
When a container (list, set, tuple, or dict) literal expression is
used as an argument to an ov...
Co-authored-by: Keller Fabian Rudolf (CC-AD/EYC3) <[email protected]>
f7e94ee94c2917fb8e522f16bea226b9d8b8d844 authored over 2 years ago by Fabian Keller <[email protected]>Deeply nested if/else expressions have a worst-case exponential behavior.
This will for insta...
e93be734f4ca51f88f0b46e5c089014e712e1d11 authored over 2 years ago by Hugues <[email protected]>Skip processing a type alias node and generate an error.
Fixes #12544.
e612e440103ec7abdc40d0e41115701362abad21 authored over 2 years ago by Alex Waygood <[email protected]>
When an invalid python executable is passed to mypy, show an error
message instead of crashing.
Detect if lxml is importable in the test suite, if it is not, then skip the report tests which
...
Borrow an operand such as `x.y` (attribute of a native class) in various contexts
when it's sa...
8e7e81759d3e43199bb0dced94f55157b72b2a49 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Fixes #11121.
8dac2210f5afedee1c45c6293f20bf9b5c5ec179 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
If we have multiple native attribute access operations in succession, we
can borrow the tempora...
Use static analysis to find attributes that are always defined. Always defined
attributes don't...
Make sure the fullname of a named tuple defined within a method matches
the nesting of the defi...
This test case cover a recent change in functionality:
if an attribute is defined as an InitVar...
* gettext: Make GNUTranslations.CONTEXT not final (python/typeshed#7841)
* sqlite3: Avoid optio...
3b7468ea518ef961d75597d52b183579b0fd83db authored over 2 years ago by Max Jones <[email protected]>
Adds a test case for a crash that was fixed by #12762. Closes #12527.
613756bd7e7a41ad14f9a6045da04cfc4612c032 authored over 2 years ago by Alex Waygood <[email protected]>Closes #8703, which is a crash that was fixed by #12762
17aec677e44da4488908680b90e0c145bff67d43 authored over 2 years ago by Alex Waygood <[email protected]>e63501c7a11abc54684bdd59872eb3b092b865ae authored over 2 years ago by Alex Waygood <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/a27f15ef0eb12b961d0fb58f8615a3df901a91...
Move the attrs plugin to a later pass, so that we won't have placeholders. Fix
various issues r...
Previously we could export an invalid type for a lambda passed to an
overloaded function. We fi...
Run the plugin in a later pass to avoid placeholder nodes.
Fixes #11728.
8faf44ad44f19c2dcf3f31f12eed5e58494fc3a3 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
The dataclass plugin could crash if it encountered a placeholder. Fix the issue by
running the ...
Changes behaviour of PatternChecker so that ValuePattern does not cover
the entire (non-literal...
612074f05ba5d65e016c031dc94b13f962d9c6b4 authored over 2 years ago by 97littleleaf11 <[email protected]>
Fixes #12164
f28bf11496b14e5b6a4610438b4a6582fbd0d3c1 authored over 2 years ago by Tomoki Nakagawa <[email protected]>Fixes #11780, fixes #11428
fb11c98e3aa8931104ac9f4618c1342c045d999c authored over 2 years ago by Nikita Sobolev <[email protected]>49d5cc907c391b4bcf52f9966f008f80badf12ab authored over 2 years ago by Alex Waygood <[email protected]>
This adds a get_class_attribute_hook to plugins to modify attributes on classes (as opposed to t...
23e2a51e05ce38aa765fe67ab1507836227b301b authored over 2 years ago by Danny Weinberg <[email protected]>
Co-authored-by: 97littleleaf11 <[email protected]>
Co-authored-by: Jingch...
Adds a more precise error message for a Callable annotation, if the
option --disallow-any-gener...
4f07c79aea0fef61ab649d6acedf01186f1054eb authored over 2 years ago by Marc Mueller <[email protected]>
Fixes #12474
4746519effeafc64da7687af8fe1685d44545219 authored over 2 years ago by dzcode <[email protected]>Fixes #12108
Co-authored-by: Marcel-ICMC <[email protected]>
Co-authored-by: Shantanu <1262...
Re-attempt of #10741
Ran: `pyupgrade --py36-plus $(fd -e py) --keep-runtime-typing`
I mostly o...
Done largely using https://github.com/ikamensh/flynt
I went over this pretty closely since I wa...
Re-attempt of #10741
Ran: `pyupgrade --py36-plus $(fd -e py) --keep-runtime-typing`
I mostly o...
Co-authored by: @chrisbeardy
3c46b818237aa8e0e06f33a74a752921346f5c5a authored over 2 years ago by Shantanu <[email protected]>9a2f729856de6d16c9b59432e6ef4d2790033d4d authored over 2 years ago by Jelle Zijlstra <[email protected]>
`fast_dict_type` and `fast_container_type` only allowed Instance but not Tuple of Instances
whi...
Re-attempt of #10741
Ran: `pyupgrade --py36-plus $(fd -e py) --keep-runtime-typing`
I mostly o...
Re-attempt of #10741
Ran: `pyupgrade --py36-plus $(fd -e py) --keep-runtime-typing`
I mostly o...
Replace List with Dict to avoid O(n**2) behavior in `check_for_extra_actual_arguments`
This m...
a56ebec8bdc1f22c7bf801653f61c9963dd3fc90 authored over 2 years ago by Hugues <[email protected]>dd6d78615455fdd9895cff1691f2de6bb2893a48 authored over 2 years ago by Shantanu <[email protected]>
`introduction.rst` has moved into `index.rst` in #12348.
33dbbd2cde45fe688a716f5d10e51d1bd6a0b096 authored over 2 years ago by eggplants <[email protected]>ce6d2433fdb9254dac5523825ab8fb310eace371 authored over 2 years ago by Hugues <[email protected]>
Mypy thought that a variable annotated with P.args is not iterable, and
that a variable annota...
When profiling mypy over a large codebase, it can be useful
to know which files are slowest to ...
Implements basic inference for TypeVarTuple along with various check tests
verifying uses of T...
* errors: speedup for large error counts
We have a legacy codebase with many errors across ma...
a3abd3644c5f2c84d2fa65fb621327a6c6a0e695 authored over 2 years ago by Hugues <[email protected]>3460717a11576d84b5f83cd62282480416c240b2 authored over 2 years ago by Shantanu <[email protected]>
Document some additional error codes and some general doc updates for
the 0.950 release.
Fixes #12633.
cb6581a8f1f41bf784eebb6a1d2c8a32fb9b43f0 authored over 2 years ago by Jukka Lehtosalo <[email protected]>* Sync typeshed
Source commit:
https://github.com/python/typeshed/commit/5dad506bf20ed5b3ddf...
d1c061689a330a4fa993f3cadf5cd8bc06756698 authored over 2 years ago by Ikko Ashimine <[email protected]>
I've seen crashes like this, which might be caused by not
fixing up some FakeInfos:
```
F...
Closes #5551 (the bug in that issue was fixed by #12590)
09dbdf6c1020aac533e0a7e71eeb97f1f1dd00f9 authored over 2 years ago by Alex Waygood <[email protected]>6eac2403f68e33e317c9f17b434d322291e60543 authored over 2 years ago by Alex Waygood <[email protected]>
9477bd8965e4bbfbb754b7fd2076e1dbe1e26432 authored over 2 years ago by Ethan Smith <[email protected]>
They weren't serialized before. Manually written serialization
code is a pain to keep up-to-date.
This adds the TypeVarTupleType type node and basic semanal/glue.
Type checking involving it w...
a16c414809714c2872ee9a063c28cde6d4398021 authored over 2 years ago by jhance <[email protected]>Improve docs and fix typos
c56046c5d963b501b69cb76221189aa4cf5ccbac authored over 2 years ago by 97littleleaf11 <[email protected]>
This adds minimal support for a TypeVarTupleExpr node, gated behind the
flag to enable incomple...
Recent attempts at speedup introduced some convoluted logic that both
reduced accuracy and caus...
This was originally written by @A5rocks in #11657.
Related to #12590.
0bcca591b49cbc9349d55ba4d38b85f9bc222566 authored over 2 years ago by Jukka Lehtosalo <[email protected]>cf146f4b5a578597ea5d81a31476fbf5b6a2ef62 authored over 2 years ago by Alex Waygood <[email protected]>
This avoids confusion between type variables of two classes, which can
happen at least in some ...
Closes #12606
cf6a48c865cc5aff23b08e651f41e1bf7b397f98 authored over 2 years ago by Marc Mueller <[email protected]>
Co-authored-by: hauntsaninja <>
Co-authored-by: Shantanu <[email protected]...
As a followup to #9394 address a few more O(n**2) behaviors
caused by decomposing enums into un...
Noticed in python/typeshed#7655 that it was incorrectly inferring list[Any]
in all cases. This ...
This always existed in typing_extensions, but was an alias for
typing.overload. With python/typ...
10ba5c1aa14e01be1cfacb322136e22751617d26 authored over 2 years ago by Alex Waygood <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/d09689f8115173e3b0b04365f5233164014a7a...
See python/cpython#30843.
The implementation mostly follows that of cast(). It relies on
`my...
Fixes #12542.
This allows parameters to constrain to Any.
44993e6a18f852a9296786267ecf26ea730b4f31 authored over 2 years ago by EXPLOSION <[email protected]>
GitHub has dropped support for the unauthenticated git protocol. See
https://github.blog/2021-0...
7cc138822cd348be223d298740dbd7194dfa9596 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
Linking #12554
Co-authored-by: hauntsaninja <>
f8ca2332eca0f242a3b1d1b99e795c790b044138 authored over 2 years ago by Shantanu <[email protected]>From python/typeshed#7614.
1cccb0b9d95ea01e54efe8932b2f12aabf7eec31 authored over 2 years ago by Jukka Lehtosalo <[email protected]>
It is not necessary for instance variables to have the fget attrbute
(e.g. instance variable in...
6a24e1de5beae5d15ca997b3a4fcb994d26c705a authored almost 3 years ago by Akuli <[email protected]>
965c6c975441e35612d6c9351dee8a2e0c9bb4a1 authored almost 3 years ago by Géry Ogam <[email protected]>
588545f501ab4542cc2e70c64f2630b2786c1dbe authored almost 3 years ago by Géry Ogam <[email protected]>
92b1f566c3d4d07962d20223d255dc66265c0dbb authored almost 3 years ago by Géry Ogam <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/3c85f36b7f9afd599409d10a214aafdecf38251e
Mypyc is bad at compiling nested functions. In one use case
we were spending 7% of the mypy run...
This tweaks a change made in #12539 that may have slowed things
down. The behavior introduced i...
This is very performance critical. Implement a few micro-optimizations
to speed caching a bit. ...
It can be a bottleneck in some use cases.
75e907d95f99da5b21e83caa94b5734459ce8916 authored almost 3 years ago by Jukka Lehtosalo <[email protected]>
This shows up as a bottleneck in some use cases, based on
profiling.
This should help with u...
ab1b48808897d73d6f269c51fc29e5c8078fd303 authored almost 3 years ago by Jukka Lehtosalo <[email protected]>
Don't rely on `object.__slots__` being defined, since it's not
defined at runtime (and currentl...
This PR adds a new Parameters proper type to represent ParamSpec parameters
(more about this i...
#11962 can generate large unions with many Instance types with
last_known_value set. This cause...
This avoids creating a new int object every time
we evaluate an integer literal in a context th...
`CPyDict_SetDefaultWithNone` doesn't return a borrowed reference,
since it just calls `CPyDict_...
1c5073044f2266099e0b619687d007b522672eb0 authored almost 3 years ago by Alex Waygood <[email protected]>
It's not used for anything.
b44d2bc54ff0401eed8ff69afd03db6a09910140 authored almost 3 years ago by Jukka Lehtosalo <[email protected]>544d21a43762a526bdc53098a1fae87627d4a454 authored almost 3 years ago by gresm <[email protected]>