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
For issue described in #5070 and documented in #14973, add a contextual
link to the docs.
Fixes https://github.com/python/mypy/issues/15984
Fix is straightforward, `ParamSpec` inferen...
0ae0c750b7c39c875f5ea536408143fe32d920d8 authored over 1 year agoFixes #5858
5783af495f22e2abc42b3c153b0bea2faa9b72e7 authored over 1 year ago
Since https://github.com/python-attrs/attrs/pull/890 (≥ 22.1.0)
`attrs.fields` is typed to acce...
Fixes #15990
379b52f2cfff4955589df714cb2dd904be482e76 authored over 1 year ago
If the dataclasses plugin cannot determine a signature for
`dataclasses.replace`, it should not...
Two main changes:
1. Always use secure permissions, when some workflow does not do
anything, i...
This is a small but possibly important PR. Wherever possible we should
represent user error and...
Doing the same thing we do for regular classes.
Fixes #15975
010da0b2f48dc92be2f79495fd4551c92351868f authored over 1 year ago
- It's not easy to predict where stdlib modules are going to be located.
(It varies between pla...
Fixes https://github.com/python/mypy/issues/15946
Note this actually adds support also for va...
efecd591e4198232f35e1db66bf99e56fc2f068b authored over 1 year agoFixes https://github.com/python/mypy/issues/15412
Two new things here as specified by PEP 646...
29abf398d6a9e88e899df8a1941019105821f9f0 authored over 1 year ago
Fixes https://github.com/python/mypy/issues/12278
Fixes https://github.com/python/mypy/issues/1...
Fixes https://github.com/python/mypy/issues/15948
The fix is straightforward: invalid type va...
f9b1db6519cd88a081e8b8597240e166eb513245 authored over 1 year agoFixes https://github.com/python/mypy/issues/15934
I think this is a right thing to do, it may...
9e1f4df133e155f213cf3714bf796bb9e8698907 authored over 1 year ago
Fixes https://github.com/python/mypy/issues/15410
Fixes https://github.com/python/mypy/issues/1...
dc7344539bd6e40825486dfaaa3d0bc34a64784e authored over 1 year ago
4077dc6c4b87b273bfd4552d75faaafa6c016c25 authored over 1 year ago
We currently flag modules missing from third-party stubs in stubtest,
but don't do similarly fo...
Fixes https://github.com/python/mypy/issues/13981
Fixes https://github.com/python/mypy/issues/1...
Fix edge-case stubtest crashes when an instance of an enum.Flag that is not a
member of that en...
Fixes https://github.com/python/mypy/issues/702 (one of the oldest open
issues)
The approach...
7141d6bcff9e26e774e88712015ca6bbe8307c9e authored over 1 year ago
Now it is quite the same as `reveal_type`. Which is defined here:
https://github.com/python/myp...
I noticed that almost all calls to `typing_name` also call
`add_typing_import`.
Co-authored-...
2c1fd97986064161c542956bb3d9d5043dc0a480 authored over 1 year ago
Use the sync-typeshed script to sync the latest typeshed before the 1.6
release.
---------
...
Fixes #12534, fixes #15878
5af76714fa2c526007e045f9c834781f60660e6e authored over 1 year ago
Fixes https://github.com/python/mypy/issues/14968
Fixes https://github.com/python/mypy/issues/1...
Fixes https://github.com/python/mypy/issues/14761
Fixes https://github.com/python/mypy/issues/1...
This is the fifth PR in the series started by #15287, and a last one for
the foreseeable future...
Fixes https://github.com/python/mypy/issues/15737
Fixes https://github.com/python/mypy/issues/1...
Fixes https://github.com/python/mypy/issues/14169
Fixes https://github.com/python/mypy/issues/1...
When running dmypy, the communication between client and server is via
JSON. The JSON contains ...
This is a third follow-up for https://github.com/python/mypy/pull/15287
(likely there will be j...
Fixes #13196.
Enable the nit-picky mode on sphinx-build in tox, as this will
facilitate the ...
Source commit:
https://github.com/python/typeshed/commit/74aac1aa891cbb568b124c955010b19d40f9...
b49be105d2940e3a0607f5ec76f519931b0d0a08 authored over 1 year agoFixes #8881
This is technically unsafe, and I remember we explicitly discussed this
a while...
This fixes some weird test failures I was seeing locally when trying to
run just the tests in `...
Adds a regression test for #12665, which is a strange bug that was fixed
somewhat by accident
### Description
Closes #11965.
Add a --include-docstrings flag to stubgen. This was sugges...
edbfdaa802fd6d951026545b0eddcba5494fbb0b authored over 1 year agoSee #13431
Authored by ilevkivskyi
98881d2cbf6b5a410b5eec2971edc80146422bac authored over 1 year agoFixes #10757
It is surprisingly one of the most upvoted issues. Also it looks quite
easy to...
9787a26f97fd6f216260aac89aa2253ed655195b authored over 1 year ago
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.280 →
v0.0....
Fixes, https://github.com/python/mypy/issues/15339
3631528796cbf2a5a825d6a5fb2010853a0a46bd authored over 1 year agoUse TypeVar defaults to resolve fallback return type of functions.
**Note**: Defaults for Typ...
9dbb1232c0f2158f72d099d35d85252696d308ff authored over 1 year ago
This adds support for `Literal` as return type of `__bool__` in the
reachability analysis.
F...
742b5c68cae5b33c7b53768e874d9bab4344567e authored over 1 year agoFixes #15658.
0e4521aa2d0b643b67777b4136bc27d97e622c56 authored over 1 year agoSource commit:
https://github.com/python/typeshed/commit/fe2ebd69af14d376825f21182d415223bd03...
89c6596f0285b2f4b4b4c93f8f5696cae7a4398e authored over 1 year agoFixes #14142
7f22aaa5783e25c2bbac81ad520d5b7702b39e4f authored over 1 year ago
Provide a concrete example of what file level comments would look like.
Sort text into sections...
Fixes #15343
c7d2fa1525c9cbf0ab8859fd9ded526658677c28 authored over 1 year ago
Looks like `capi_version < 3.7` is not supported, so I changed the
lowest version to be `3.7`.
...
See https://github.com/python/mypy/pull/14740
My PR was pretty old and predates the nice chec...
eab5b5083adf1b54ab1691f5ecc5a846863420de authored over 1 year agoResolves #9789
Users could use `--disable-error-code=import-untyped` to only ignore
errors a...
This is a third PR in series following
https://github.com/python/mypy/pull/15287 and
https://g...
…5272)"
This reverts commit 2aaeda4b84a863004a6694a7d562462fbe531ece.
<!-- If this pull re...
a7c48520560c3adf7176b91d16f4d0750ab8dfa9 authored over 1 year ago
- Fixes https://github.com/python/mypy/issues/15037
- Fixes https://github.com/python/mypy/issu...
The black pre-commit mirror is now hosted at:
https://github.com/psf/black-pre-commit-mirror
This is a first follow-up for #15287 (I like how my PR titles sound like
research paper titles,...
2b613e5ba1ada5a44f88a90528af834bf9f770a7 authored over 1 year ago
54bc37ccade0476a1738b33cd34b6eb35d7124e1 authored over 1 year ago
Closes https://github.com/python/mypy/pull/15526
cb813259c3b9dff6aaa8686793cf6a0634cf1f69 authored over 1 year agoCloses https://github.com/python/mypy/issues/15782
d71afbf89437bdf34566f50923759ead2736d93a authored over 1 year ago002502a0111852c360f2255830951473bcfec4a7 authored over 1 year ago
It solves two problems:
1. `fix_annotate` and `async_matrix` were removed in
https://github.co...
While working on https://github.com/python/mypy/pull/15776 I've noticed
that some `RuntimeError...
Remove the Python 37 environment from the `tox.ini` since Python 3.7 is
now end of life.
Co-...
6040b237e31978b7f6764266a3d162acb68c7884 authored over 1 year ago
This is a test case for https://github.com/python/mypy/pull/15680 from
`stubtest`'s point of view.
`flatten_types` forgot about the second way we represent `tuple` inside.
Closes https://githu...
da1853ff7f764157511ece4305a11369f63353f5 authored over 1 year agoCloses https://github.com/python/mypy/issues/15638
a8467c43fb6423cc3f7f330f361e6b5af0bf284f authored over 1 year agob901d21194400b856a88df62a3d7db871936a50d authored over 1 year ago
Co-authored-by: Alex Waygood <[email protected]>
01c6994ac01e3822fe89c5dc46f8bc8b656c8263 authored over 1 year agod2022a0007c0eb176ccaf37a9aa54c958be7fb10 authored over 1 year ago
6bdcc92002a5e1a6feb1528d0221802f7514c836 authored over 1 year ago
Completes a `TODO` item :)
Refs https://github.com/python/mypy/issues/15724
---------
C...
14e7768c3bd8d1164e887ce3becba3459ebcfaa4 authored over 1 year ago383137baaf36876dcf935c2f5be053b6419097d0 authored over 1 year ago
88c0c644c78e2f31ed25a523ad1f74727f2d647f authored over 1 year ago
Followup to #15681
89ad125fa5a31a7c82f267e957d3c94da6b52f61 authored over 1 year ago
The "Skip path normalization" option applies to all [out]s of a test
case, so it's more correct...
3f601c3641ecde3557520ddc64a18baa40b12e35 authored over 1 year ago
Since the plugin provides superior type checking: https://github.com/python/mypy/pull/13987#issue...
1866d28f156c413ce8cc9fec0b317a7d02c28565 authored over 1 year agoThis is allegedly causing large performance problems, see 13821
typeshed/8231 had zero hits on ...
120af30e706a0e0e29faf915c56c5b6781c9b204 authored over 1 year ago
Source commit:
https://github.com/python/typeshed/commit/a83e55990ca7f9b9f93271b9087a3f433f54d94a
3240da455e06a292669de22b0ef313dad43cb094 authored over 1 year ago
2f6b6e66ced53a0412c46851afb963f35a012f79 authored over 1 year ago
14743a1cdd2a07ecc56ce01cc9d54130fb32931e authored over 1 year ago
1958cb62f4de7492fb154323f3fdb7a0b6b51fa7 authored over 1 year ago
It should exclude test_cases too
a538cc98d54031f25e44787a90649ea909877f12 authored over 1 year ago
Created the [release-1.5
branch](https://github.com/python/mypy/tree/release-1.5), updating
ve...
The root cause is hacky creation of incomplete symbols; instead
switching to `add_method_to_cla...
2ebd51e881490f4d20635cde92ef9e3edbbad68c authored over 1 year ago
39833810ddcd29561f3ffed44703380aa26a68be authored over 1 year ago
- On module-level, now we'll skip remaining statements once unreachable.
This brings the behavi...
Add the strict mode for [PEP
698](https://peps.python.org/pep-0698/#strict-enforcement-per-proj...
8a5d8f085185c41fce15ab108db236f1d94e5b62 authored over 1 year ago
This is similar to https://github.com/python/mypy/pull/15649 but for
`attrs` :)
Refs https://g...
fbe588ff73abd26d1a775e0bfc3db14e933159aa authored over 1 year ago
Closes https://github.com/python/mypy/issues/15647
4a1a38eee6b1558c0891584a6fdff84eab49c7a6 authored over 1 year ago
This fixes the test case testFStringWithFormatSpecifierExpression on
Python 3.12.
Strip redu...
235a3bb456ef782ef9a6005616aeea4e3a2a432a authored over 1 year ago
The PR is quite simple (and I would like to keep it this way):
- Before we were only checking ...