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
This PR replaces explicit `os.path.exists(...)` checks with
`os.makedirs(..., exist_ok=True)` w...
Fixes #16630
13e7213ad958a50ab4bf28abd63fa1f324f58a69 authored about 1 year ago by Maarten Huijsmans <[email protected]>
This is basically a pre-existing bug and affects other errors that
ASTConverter might raise, li...
Closes https://github.com/python/mypy/issues/16586
CC @ikonst
Preparation step for the 1.8.0 release.
1cdeecdcc11115a3d15610801fdf91b0ed6bbe0a authored about 1 year ago by Wesley Collin Wright <[email protected]>
Once class C is final, we know that a derived class won't add a
`__bool__` or a `__len__` so if...
Fixes #15148
I think it also fixes the [initial
bug](https://github.com/python/mypy/issues/1...
Fixes https://github.com/python/mypy/issues/16466
d54cc35a93b1f1bda8f837e0f3ae6f964a1c7feb authored about 1 year ago by Marcel Telka <[email protected]>Followup to #16598
eb1ee973778e3cf719948e1653db9760ea49405d authored about 1 year ago by Alex Waygood <[email protected]>This is allegedly causing large performance problems, see 13821
typeshed/8231 had zero hits on ...
bdcc90e85be8b18c3a37b4ef83645e1c09f96495 authored about 1 year ago by Shantanu <[email protected]>588623ff2fd1d842ce3b70d330d8c37a166db8c4 authored about 1 year ago by Shantanu <[email protected]>
344298e3a7b1a299092c684c11c28e9f4dc44dd9 authored about 1 year ago by AlexWaygood <[email protected]>
Since the plugin provides superior type checking: https://github.com/python/mypy/pull/13987#issue...
3e5d813372e4fc1899319f31425bfc11c27fddb3 authored about 1 year ago by AlexWaygood <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/5f12eebda4bfddb247c05fb06c6762bd262a9420
Stubtest's tests will start failing when `typing_extensions==4.9.0`
comes out, due to some new ...
This addresses several regressions identified in
https://github.com/python/mypy/issues/16486
...
69b31445280d7c495fa0268b24fc558bcbe74505 authored about 1 year ago by Chad Dombrova <[email protected]>
I saw a bunch of warnings when running tests in parallel using pytest.
When running tests seque...
Fixes #13238
See also https://github.com/python/typeshed/issues/8988
e69c5cde8643e04a54a644cc27814ab98181541d authored about 1 year ago by Ali Hamdan <[email protected]>
This showed up as hot spot in a CPU profile collected when running
tests.
This makes `mypy/t...
1200d1d956e589a0a33c86ef8a7cb3f5a9b64f1f authored about 1 year ago by Jukka Lehtosalo <[email protected]>
Move some definitions away from commonly used fixtures that are only
needed in one or two test ...
Refs #16521
50d6d0b145f3c4be2d7633d61c37244280217d76 authored about 1 year ago by Nikita Sobolev <[email protected]>
Default value of `MANY_ERRORS_THRESHOLD` was set to `-1` in
https://github.com/python/mypy/pull...
Fixes https://github.com/python/mypy/issues/16187
Note there may be some more similar crashes...
242ad2ac4dec105fbed37c177d4cff5944a00f1d authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/16512
The problems were caused if same callback p...
fc811aedbf696c54da144851ccaeeceb19ec9a5e authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/16485
My initial implementation of imprecise cons...
3e6b5528e662d0accb6def21d6963361fe894301 authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/16420
Although this is not 100% clear yet, but af...
a3e488d24e25688e74f32ced52ba560f77791b8c authored about 1 year ago by Ivan Levkivskyi <[email protected]>See python/cpython#87233
706389d3d551dc8f18ce5e5f48584f351a7a07a1 authored about 1 year ago by Jelle Zijlstra <[email protected]>
Followup from
https://github.com/python/mypy/pull/16457/files#r1392715784
6cbdab8317f40e146058fd46ea96d5bbbea086c4 authored about 1 year ago by Alex Waygood <[email protected]>
058f8fd25fc425092bb4116b318cb61e1e43e0ff authored about 1 year ago by Nikita Sobolev <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/643d911f4fb434176c7f6a342db910943125...
1cc62a211d21cca2d3bf44957d1635d0a02fef30 authored about 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Fixes https://github.com/python/mypy/issues/16163
Fix is straightforward: I simply copy the l...
5489fd33f08fd93eff167eda84b00eeab939a419 authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/16498
Fix is trivial: no operations can be done w...
8c8aa10e2976612ca0ca1fa1e5655fbd535de6f7 authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/16480
Fix is straightforward, but also suspicious...
b425bd60672881addcd55dfae61993fa2ac03cca authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/16473
Potentially we can turn this helper functio...
0699dde8dc2633861a65ac43701eda09e79de366 authored about 1 year ago by Ivan Levkivskyi <[email protected]>
Fixes https://github.com/python/mypy/issues/16405
Fixes https://github.com/python/mypy/issues/1...
Fixes https://github.com/python/mypy/issues/16451
This special-casing is unfortunate, but thi...
fbb77c31ad48e08105b5d02c2888d803bdcd6fc5 authored about 1 year ago by Ivan Levkivskyi <[email protected]>
Lets the Markdown renderer highlight the code as Python rather than
leaving it un-highlighted :...
I've noticed that `TypedDict` and `NamedTuple` classes are special cased
during semantic analyz...
Fixes https://github.com/python/mypy/issues/16468
The fix is straightforward.
Btw when fix...
efa5dcb35929f8555c0fd687f493ab15ac13881d authored about 1 year ago by Ivan Levkivskyi <[email protected]>
Fixes https://github.com/python/mypy/issues/9910
Fixes https://github.com/python/mypy/issues/16...
There are several `TODO` items for the future (not in this PR):
- [ ] Add an error code to disa...
Fixes #16414
f7a05300f70321e18904d908c66522cc792d4123 authored about 1 year ago by Shantanu <[email protected]>We should probably lean into the type checker harder here
Fixes #14950
Fixes
https://github...
This is needed for the Debian package of mypy, as we package the docs
and we have upgraded to S...
Fixes https://github.com/python/mypy/issues/16450
The fix is a bit ad-hoc, but OTOH there is ...
c68bd7ae2cffe8f0377ea9aab54b963b9fac3231 authored about 1 year ago by Ivan Levkivskyi <[email protected]>I also updated the blog post.
ed03aff13d423fd7da836b4a414ba6787166d993 authored about 1 year ago by Jukka Lehtosalo <[email protected]>We are now very close to release.
4f020e7b6f12b3d0c32372667d99dbc13b715429 authored about 1 year ago by Jukka Lehtosalo <[email protected]>
This is an adaptation of an older script that we used to convert from a
Paper doc to HTML.
T...
85f405a4cd8c00f1297609829c8c5d12f66fae9d authored about 1 year ago by Jukka Lehtosalo <[email protected]>Address feedback and include recently cherry-picked PRs.
ec9004677c4e1b749cab89494e60f0c6727d2162 authored about 1 year ago by Jukka Lehtosalo <[email protected]>Fixes https://github.com/python/mypy/issues/16425
Fix is straightforward.
f05663d31e6d9097b152ecf5825b8d9dc50cea54 authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/16427
The test case added in the first commit cra...
b67dc53ad5bee837ea0de7ece9f9e14c634a923e authored about 1 year ago by robjhornby <[email protected]>1dc07b3b3d703f0b7b4564fac99461d0144d5870 authored about 1 year ago by Jukka Lehtosalo <[email protected]>
Add sections covering bigger changes.
cd1ce2fd396dc33c7d3b8049a830870e80d48e1b authored about 1 year ago by Jukka Lehtosalo <[email protected]>a1648f555636a5e3aeb99dbf59b394e6939c1344 authored about 1 year ago by Jukka Lehtosalo <[email protected]>
Add sections for related changes. Remove some internal changes and make
other small tweaks.
Generated using `misc/generate_changelog.py`.
f154b756097962325e231f6999c4bfd5d3f4d226 authored about 1 year ago by Jukka Lehtosalo <[email protected]>
The script format changelog entries based on commit history and has some
rules to filter out so...
Fixes https://github.com/python/mypy/issues/3208
Interestingly, we already prohibit this when...
a1864d4fa498ccd8773c2247eb62282644174d26 authored about 1 year ago by Ivan Levkivskyi <[email protected]>
https://github.com/python/mypy/pull/16388/ changed the definition of
`write_junit_xml` but miss...
#16388 introduced a bug where, with `--junit-format=global`, the junit
file would indicate an e...
Fixes https://github.com/python/mypy/issues/4297
Fix is straightforward: without properly pus...
544e6ce119ec6bdd5eabab53a433264c98dc7d9c authored about 1 year ago by Ivan Levkivskyi <[email protected]>
Adds a new `--junit-format` flag to MyPy, which affects the structure of
the junit file written...
Now all messages use the same `"super"` formatting, it used to be a bit
different.
Fixes https://github.com/python/mypy/issues/16395
44e527a3ea2d4bc66565c64edf837c3560eacb3e authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/15794
Unfortunately, this requires to pass `--exp...
371219347a6d17e16924bbabf3e693c6874e7138 authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/16380
Fix is quite straightforward, what was an `...
6a8365484e62b9f05817f04aec144d9b783442fe authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/16375
14f79c1c6d499df94a0cff3ee627582c13a80a2b authored about 1 year ago by Ivan Levkivskyi <[email protected]>Source commit:
https://github.com/python/typeshed/commit/3c872ca8fd875f2dc5fe5f5d771e35c58390...
4291b2c07f8dd862c6656d51b8267e7fc84ad1dc authored about 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Fixes #10314
0ff7a29d5336dad6400a9356bd4116b59c20a875 authored about 1 year ago by Jelle Zijlstra <[email protected]>128176ad1150cebd4b4e20ff7f1ec3f9857d1754 authored about 1 year ago by Jukka Lehtosalo <[email protected]>
If a submodule has been deleted while using a fine-grained cache, the
daemon could crash during...
Fixes https://github.com/python/mypy/issues/12280
Fixes https://github.com/python/mypy/issues/1...
Fixes https://github.com/python/mypy/issues/15780
b064a5c183b53a84d895bb8e3c36a3a74e24be9c authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/15781
The fix is to switch to already resolved pa...
4e30e896486b774cdecaef6d3521a585b8acf8bc authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/16336
All the story with `@`-names is a mess. FWI...
b8c748a77a27b27599b9c2b4097427e055f4c16c authored about 1 year ago by Ivan Levkivskyi <[email protected]>
This PR removes one of the duplicate **in** in the sentence "This option
is only useful in in t...
The upper bound is usually `object`, so add a fast path and skip a
potentially slow subtype che...
Fixes #16318, as requested by setuptools maintainer
2aa2443107534715a650dbe78474e7d91cc9df20 authored about 1 year ago by Shantanu <[email protected]>
The check was pretty expensive, though usually it's not doing anything
non-trivial. Added a fas...
We used to check if a file is in typeshed a lot. This seems to speed up
self-check by about 2%,...
I decided to go again over various parts of variadic types
implementation to double-check nothi...
We were spending quite a lot of time in this function when running
tests, based on profiling.
Fixes https://github.com/python/mypy/issues/15906
I am adding `--old-type-inference` so peopl...
93d4cb0a2ef1723ce92f39ae61fe6a0c010eb90b authored about 1 year ago by Ivan Levkivskyi <[email protected]>
FWIW I decided to keep the old tests (where possible), just to be sure
we will not re-introduce...
Fixes https://github.com/python/mypy/issues/16287
Update mypy's error on starred expression t...
42f7cf1a7228844f82f4de22ac94f0e1b5e3ed9b authored about 1 year ago by Cibin Mathew <[email protected]>Fixes https://github.com/python/mypy/issues/16338
This is kind of a major change, but it is t...
5c6ca5cdee906ec7c57be478679cd689fdd15861 authored about 1 year ago by Ivan Levkivskyi <[email protected]>
This is to ensure that you don't get encoding errors if docstrings
contains odd characters like...
Fixes https://github.com/python/mypy/issues/16285
I was not sure if it is important to suppor...
5d4046477eb017fcb2cdbf64403a4e67308ef2ed authored about 1 year ago by Ivan Levkivskyi <[email protected]>Fixes https://github.com/python/mypy/issues/16331
Fix is straightforward: do not use the fall...
b41c8c1ec4337f158d70d9dfd2032c2ae03a017c authored about 1 year ago by Ivan Levkivskyi <[email protected]>
Previously changing a return type to an optional type was not propagated
at least in some cases...
Previously we produced duplicate functions in C, which caused C
compiler errors.
The 3.8 tests have been flaking for several weeks and I don't think
anyone has a good repro or ...
This is an attempt to fix wheel builds. Perhaps we'd want to actually
include the changelog in ...
Please, note that there are several problems with `__ror__` definitions.
1. `dict.__ror__` does...
Fixes https://github.com/python/mypy/issues/16296
In my big refactoring I flipped the varianc...
cda163d378d6f85627b72454918cba323bf37749 authored about 1 year ago by Ivan Levkivskyi <[email protected]>Closes https://github.com/python/mypy/issues/16307.
341929b10df327796ef60da4837b907d6af1b7d9 authored about 1 year ago by Ihor <[email protected]>
Skip them instead. This applies to statements after break, continue,
return and raise statement...
The semantic analyzer treats properties as overloaded functions. This
was previously ignored by...
Fixes #1178
Supersedes #10367
This is includes implementation for fixed length tuples, hom...
a3af87bf252f0ed0c6e0f977ad4079418b37a70f authored about 1 year ago by Ivan Levkivskyi <[email protected]>