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
Fixes #12344
FWIW this is unsafe (since we don't know where the mixin will appear in
the MR...
When I was working on a different PR for Mypy, I came across these
functions:
```python
...
Fixes #10289
Unless I am missing something, this indeed looks safe, so I am going to
allow t...
Fixes #10244
Fixes #13515
This fixes only the crash part, I am going to fix also the embarr...
7d0d1d9d505869d55ee71e370941a8a47122087e authored about 2 years agoFixes: #14101
This prevents non-error messages (e.g. warnings) from causing dmypy to
return ...
Fixes #12744
The fix is straightforward. Current logic can produce a random mix of
old and n...
IIRC `ImportedName` was used by old semantic analyzer, that is long gone
now.
Ref #12840
Fixes #11871
Fixes #14089
This is an alternative implementation to two existing...
77dd4b4df5b8bcd716352144feeb78862427f4dd authored about 2 years ago
In general, mypy doesn't promise to be able to check the remainder of
your code in the presence...
Fixes #14030
FWIW this looks like an acceptable compromise after discussions in the
issue. ...
Fixes #9654
Seems to be quite straightforward. Erased types should never be stored
on variab...
Fixes https://github.com/python/mypy/issues/10976
Fixes https://github.com/python/mypy/issues/1...
It looks like these are not used anymore (we will see if tests pass).
47a435f38d96892b1f6a1fe543b0abe3ccca9c53 authored about 2 years ago
`Iterable` does not implement `__len__`, so passing a `Generator` would
always evaluate to `tru...
Fixes #14027 (issue was surfaced by #13509)
67855fab376c3c2d68bcf0940b242c9b71a98156 authored about 2 years agoFixes #14046. Similar to #13733
Best reviewed with hide whitespace.
f78d1fdc154d507353b34e7ea2037ef68de4e6fc authored about 2 years agoFixes #14048
Co-authored-by: Jelle Zijlstra <[email protected]>
70e544b1fb848448fc702e95a84edfa5ab628d3c authored about 2 years agoFixes #14002
a48dd5ad7ff820da7ea1e947008fff2865e2296a authored about 2 years agoCo-authored-by: Shantanu <[email protected]>
b18281c857a3e089740b6c6c03ff52a529c1b0ba authored about 2 years ago
#13768 had a bug so that errors were sometimes silenced in files that
were under a directory in...
By using tabs instead of spaces for indentation in the emitted C code we
are able to reduce the...
Fixes #14031
It turns out premature optimization is the root of all evil. (It turns
out thi...
Tried to make it in a way such that we can add more rules for platforms
we want to filter out i...
Fix Python 3.10 `|` union syntax in type aliases, when one of
the operands is a type alias or a...
Fixes #12109.
The original issue reported that the bug had to do with the use of the
`--foll...
Ref #12840
It looks like from the point of view of type checking support is quite
easy. Myp...
Discovered as part of #14017
807da2675bfdc7ec434f8d5677c13722a555e8da authored about 2 years agoFixes #14000
This will introduce some minor perf penalty, but only for code that
actually u...
Introduced in #14003
796068d06a0ab171d22f7be555c28dfad57db433 authored over 2 years agoSee #13681
More clearly point out the speed cost and the alternative of installing
stub pack...
Closes #13243.
For the most part, in order to determine which fields where worth
pattern mat...
Closes https://github.com/mypyc/mypyc/issues/956
This was originally a part of #13953, see
h...
451ae0e4600af848b02390495e4317b997d51032 authored over 2 years ago
Fixes https://github.com/mypyc/mypyc/issues/896
77a92b598bbfa129613d16e17b5e00ad7af9d1ab authored over 2 years ago
This changes our importing logic to be more consistent and to treat
import statements more like...
0457d33609ef8dd7d7e32ff18dd39da3e4ecc3fc authored over 2 years ago
8b825472a02f0a30419c02e285ba931107a42959 authored over 2 years ago
As per the TODO comments, this PR removes some unnecessary `assert`s in
`mypy/ipc.py`. When the...
There aren't really any big changes required over on mypy's side (I was
worried there would be ...
Next release is 1.0 so also update the comments.
NOTE: Should we go with 1.0 or 1.0.0? I chose ...
Fixes some of #13965, fixes #12749
We also need to modify attribute access logic (this is the...
8c691242d6326dc9e1c8521e18fd13eaf15a3b49 authored over 2 years agoFixes #13066
During the semanal phase, mypy opts to ignore and skip processing any
malformed...
Don't think there's a test case corresponding to the issue in #13966
758f43c5d27eda339fd340a7b68bce59b3684254 authored over 2 years agoCloses #13890
41c160231bb53cb9895044506c2b08aba692922b authored over 2 years ago
Makes sure we continue to cherry pick
https://github.com/python/mypy/pull/13961
This is allegedly causing large performance problems, see 13821
typeshed/8231 had zero hits o...
5319fa34a8004c1568bb6f032a07b8b14cc95bed authored over 2 years ago
It might be useful to run mypy_primer without promotions in typeshed.
This would give us more c...
Closes #13360
507fc5cf256bd4d1749a6109ef45c8462dd82185 authored over 2 years ago
It's okay to take an address of a register, pass it to a function that
initializes the register...
8ef701d03baeb2d714bd40f94d0037699c9face2 authored over 2 years ago
This fixes handling of bitmap arguments used to track default values of
arguments with native i...
bump these two dependencies.
Also:
- add all supported python versions to black config
- ch...
This doesn't change any test cases.
81ea3633f7796b6365143e6b566d50ca2a94f241 authored over 2 years ago
Related to #13917 and #13908. This handles situations involving
per-module re-exports correctly...
Co-authored-by: Shantanu <[email protected]>
ace0f3219b8fef315d5bf6d86eff4ef225306053 authored over 2 years ago
This adds support for match statements for the partially-defined
variables check. This should c...
It is no longer needed. `typeshed` defines `contextlib.contextmanager`
and `contextlib.asynccon...
Changes:
- Removes notes about old semantic analyzer, it is long gone
- Removes outdated `cont...
Also only suggest public API for attribute access suggestions
Fixes #13908
Accomplishes a ...
9bba3773b004e989df59950bd8e40d09278a7e8d authored over 2 years ago
- Mention PEP 604 unions
- Separate out the 3.8 stuff to keep things more readable
- Remove me...
This is based on the idea of https://github.com/JelleZijlstra/autotyping
Other magic methods ca...
We're dealing with the get descriptor here but calling it `__set__`,
probably a copy-paste from...
- Show complete code examples for dynamic typing
- Make clearer that the insides of dynamically...
This covers some cases from the PEP646 documentation which says we
should error when there are ...
This implements the most basic support for the *args feature but various
edge cases are not han...
Avoid creating duplicate bitmap arguments for the constructor. These
would generate broken C wi...
It was very confusing, because `int` and `str` were messed up.
5e1e26eba15b43449bdce4010bf16d160d3ec505 authored over 2 years agoSync typeshed
Source commit:
https://github.com/python/typeshed/commit/51e18a860129b792123...
abc9d155ffbd9ea160eec0b57c450cdf7e53ce39 authored over 2 years ago
Otherwise the commit it wants to cherry-pick doesn't exist:
https://github.com/python/mypy/acti...
Fixes #10013
See https://github.com/python/mypy/pull/13851#issuecomment-1274345759
for motiv...
A separate error code for `truthy-function` so it can be enabled by default.
Closes #12621
...
b3d94dc3d834dd4916d568a00d344cc610deb687 authored over 2 years ago
After we started using black upload-pypi broke because we switched the
style of quotes. This re...
This adds a new Pep646 test case which demonstrates that like with the
constraints from PR #137...
This will hint people affected by #13851 what to do to silence this. I
am not doing it for all ...
Fixes #13819.
7cc024a1096324a5979890948218baa61e26bdd4 authored over 2 years ago
If an `attrs` class does not generate the `__init__` method for whatever
reason, the method is ...
68ab69c8eab2d3b8df2f9a49071161328c6b5039 authored over 2 years ago
Resolves #13812
186876c55422d15fc1e2d643f78b35116ae8a87f authored over 2 years agoThis will give us more confidence that compiled mypy works on 3.11.
efd713a507a8e239f0eaf7d9b4ce5d1fcc927509 authored over 2 years ago
This fixes the testErrorOutput and testCompileMypyc test cases by
setting up the module search ...
We no longer support Python 3.6.
628a5114519ccf1755a672d44a3d24a90eb1f9b8 authored over 2 years agoFixes #13825
We add also types encountered in locally defined symbols, not just
expressions....
Since all tests pass in CI and we build wheels
2f08e40fe999b41274a2427bbb5acc9b31f764d7 authored over 2 years agoCloses #3948
This however gives a note instead of an error, so that type checking
result wil...
This fixes couple issues discovered in
https://github.com/python/mypy/pull/13790:
* A crash on...
The motivation here is to not penalize people who try early features
with breaking their CI. We...
Ref #13685
Co-authored-by: Nikita Sobolev <[email protected]>
b79a20ab61b373ce531cd20ff66d853141fb0fe9 authored over 2 years ago
Our current isort config doesn't fully work for the pre-commit hook.
Whereas in tox isort is ca...
Fixes #13822
1fbbe91c84ca1d26168d4d5eaec8888222e2e3c6 authored over 2 years ago366b7e1a86df22f9a1ef13a12147f0ef2e6219e1 authored over 2 years ago
Fixes #13795
Calculating tuple fallbacks on the fly creates a cycle between joins and
subtyp...
`typed_ast` is not directly used in tests, and is never imported on
Python 3.8+.
Its requireme...
For now we run non-compiled version. (I tried compiling mypy locally and
it failed with couple ...
This fixes the last failing test on Python 3.11
1a8e6c8ed9fca2125e5619f2fb81a21517c2b2a7 authored over 2 years agoSource commit:
https://github.com/python/typeshed/commit/8b41b1337b34529f3c328d4167d8c902c36f...
589ad1c17eeb220a41ba41425b61b8593f8bc42d authored over 2 years agoFixes #13806
This PR adds support for a FORCE_COLOR environment variable. If both
MYPY_FORCE...
Closes #10728
Co-authored-by: Shantanu <[email protected]>
9033bc5373b12dd84c239f8d3a4cbf086fa3d8dc authored over 2 years ago
This should help people who need to `import mypy.reports` directly, see
https://github.com/pyth...
See microsoft/pyright#4001.
- TypeVar bounds that contain TypeVars are not well-specified and...
dc5c299aa190949f2300b163ccc10257a779006d authored over 2 years ago
Fixes #13760
Fixes #6060
Fixes #12824
This is a right thing to do, but let's what `mypy_pr...
08c566cfa8a3e9cbf0bbad1db3cdcdff7d1ad2f2 authored over 2 years ago