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

Add hint for AsyncIterator incompatible return type (#15883)

For issue described in #5070 and documented in #14973, add a contextual
link to the docs.

a7e0f6f8b0ec5de2fe7b804c9ac7160893ae5bf8 authored over 1 year ago
Fix ParamSpec inference for callback protocols (#15986)

Fixes https://github.com/python/mypy/issues/15984

Fix is straightforward, `ParamSpec` inferen...

0ae0c750b7c39c875f5ea536408143fe32d920d8 authored over 1 year ago
Fix inference for properties with __call__ (#15926)

Fixes #5858

5783af495f22e2abc42b3c153b0bea2faa9b72e7 authored over 1 year ago
attrs: remove fields type check (#15983)

Since https://github.com/python-attrs/attrs/pull/890 (≥ 22.1.0)
`attrs.fields` is typed to acce...

2298829ab3b7339427ec957ec5c21955d3657c6f authored over 1 year ago
Try upgrading tox (#15992)

Fixes #15990

379b52f2cfff4955589df714cb2dd904be482e76 authored over 1 year ago
dataclasses.replace: fall through to typeshed sig (#15962)

If the dataclasses plugin cannot determine a signature for
`dataclasses.replace`, it should not...

d6df8e883e927920bbe50aab779e7591e31533c6 authored over 1 year ago
Improve GitHub Actions specs (#15965)

Two main changes:
1. Always use secure permissions, when some workflow does not do
anything, i...

6c16143c3a68c99f6e4c99974c44cf3abf867103 authored over 1 year ago
Optimize Unpack for failures (#15967)

This is a small but possibly important PR. Wherever possible we should
represent user error and...

171402834faece2e20760f0d02e96aa3714324c2 authored over 1 year ago
attrs, dataclasses: don't enforce slots when base doesn't (#15976)

Doing the same thing we do for regular classes.

Fixes #15975

010da0b2f48dc92be2f79495fd4551c92351868f authored over 1 year ago
Fixes to stubtest's new check for missing stdlib modules (#15960)

- It's not easy to predict where stdlib modules are going to be located.
(It varies between pla...

d7b24514d7301f86031b7d1e2215cf8c2476bec0 authored over 1 year ago
Support user defined variadic tuple types (#15961)

Fixes https://github.com/python/mypy/issues/15946

Note this actually adds support also for va...

efecd591e4198232f35e1db66bf99e56fc2f068b authored over 1 year ago
Support PEP 646 syntax for Callable (#15951)

Fixes https://github.com/python/mypy/issues/15412

Two new things here as specified by PEP 646...

29abf398d6a9e88e899df8a1941019105821f9f0 authored over 1 year ago
Infer ParamSpec constraint from arguments (#15896)

Fixes https://github.com/python/mypy/issues/12278
Fixes https://github.com/python/mypy/issues/1...

7f65cc7570eaa4206ae086680e1c1d0489897efa authored over 1 year ago
Fix crash on invalid type variable with ParamSpec (#15953)

Fixes https://github.com/python/mypy/issues/15948

The fix is straightforward: invalid type va...

f9b1db6519cd88a081e8b8597240e166eb513245 authored over 1 year ago
Use TypeVar refresh uniformly for class object access (#15945)

Fixes https://github.com/python/mypy/issues/15934

I think this is a right thing to do, it may...

9e1f4df133e155f213cf3714bf796bb9e8698907 authored over 1 year ago
Fix type arguments validation for variadic instances (#15944)

Fixes https://github.com/python/mypy/issues/15410
Fixes https://github.com/python/mypy/issues/1...

351371d20c0b9e014528238761a6eeedf8dfb926 authored over 1 year ago
Do not advertise to create your own `assert_never` helper (#15947)

dc7344539bd6e40825486dfaaa3d0bc34a64784e authored over 1 year ago
stubtest: fix edge case for bytes enum subclasses (#15943)

4077dc6c4b87b273bfd4552d75faaafa6c016c25 authored over 1 year ago
stubtest: error if typeshed is missing modules from the stdlib (#15729)

We currently flag modules missing from third-party stubs in stubtest,
but don't do similarly fo...

0b303b53479897e24d57affef6a8cdfffbd08e3d authored over 1 year ago
Streamline some elements of variadic types support (#15924)

Fixes https://github.com/python/mypy/issues/13981
Fixes https://github.com/python/mypy/issues/1...

6f650cff9ab21f81069e0ae30c92eae94219ea63 authored over 1 year ago
Fix stubtest mypy enum.Flag edge case (#15933)

Fix edge-case stubtest crashes when an instance of an enum.Flag that is not a
member of that en...

48835a362d86eb9964b0350e4453daf14c76fe8e authored over 1 year ago
More principled approach for callable vs callable inference (#15910)

Fixes https://github.com/python/mypy/issues/702 (one of the oldest open
issues)

The approach...

7141d6bcff9e26e774e88712015ca6bbe8307c9e authored over 1 year ago
Fix `assert_type` failures when some nodes are deferred (#15920)

Now it is quite the same as `reveal_type`. Which is defined here:
https://github.com/python/myp...

e804e8d740631ecbdb3a70330a3ea8497e114e3a authored over 1 year ago
(🎁) `StubGenerator.add_typing_import` returns the name (#15912)

I noticed that almost all calls to `typing_name` also call
`add_typing_import`.

Co-authored-...

2c1fd97986064161c542956bb3d9d5043dc0a480 authored over 1 year ago
Sync typeshed for 1.6 (#15918)

Use the sync-typeshed script to sync the latest typeshed before the 1.6
release.

---------
...

5d909f1cdd7dde5e58259dc153959a38d084b988 authored over 1 year ago
Improve match narrowing and reachability analysis (#15882)

Fixes #12534, fixes #15878

5af76714fa2c526007e045f9c834781f60660e6e authored over 1 year ago
Support self-types containing ParamSpec (#15903)

Fixes https://github.com/python/mypy/issues/14968
Fixes https://github.com/python/mypy/issues/1...

d7d502e5e63092322d57c607e2affac6cb5234b8 authored over 1 year ago
Allow Ellipsis in Concatenate; cleanup ParamSpec literals (#15905)

Fixes https://github.com/python/mypy/issues/14761
Fixes https://github.com/python/mypy/issues/1...

1db3eb3c991b82c2b0f9b7bd0a2547e140dd402a authored over 1 year ago
Polymorphic inference: basic support for variadic types (#15879)

This is the fifth PR in the series started by #15287, and a last one for
the foreseeable future...

b02ddf1db45f6cd1b3a4cf0f40e768b36f5636a7 authored over 1 year ago
Basic support for decorated overloads (#15898)

Fixes https://github.com/python/mypy/issues/15737
Fixes https://github.com/python/mypy/issues/1...

fa84534b9a9c6bdfc2a155d2e916da0c308402b9 authored over 1 year ago
Fix subtyping between ParamSpecs (#15892)

Fixes https://github.com/python/mypy/issues/14169
Fixes https://github.com/python/mypy/issues/1...

b3d09374dac20c8e775e4380a6b44a56d7b22699 authored over 1 year ago
[dmypy] special case stdout and stderr in show_stats too (#15881)

When running dmypy, the communication between client and server is via
JSON. The JSON contains ...

76c16a484b8b4fa6ae10abf4e96a286315ed7093 authored over 1 year ago
Polymorphic inference: support for parameter specifications and lambdas (#15837)

This is a third follow-up for https://github.com/python/mypy/pull/15287
(likely there will be j...

14418bc3d2c38b9ea776da6029e9d9dc6650b7ea authored over 1 year ago
Fix all the missing references found within the docs (#15875)

Fixes #13196.

Enable the nit-picky mode on sphinx-build in tox, as this will
facilitate the ...

fda7a460485cb856c595d4d0593a0ec6c0fe03e9 authored over 1 year ago
Sync typeshed (#15873)

Source commit:

https://github.com/python/typeshed/commit/74aac1aa891cbb568b124c955010b19d40f9...

b49be105d2940e3a0607f5ec76f519931b0d0a08 authored over 1 year ago
Allow None vs TypeVar overlap for overloads (#15846)

Fixes #8881

This is technically unsafe, and I remember we explicitly discussed this
a while...

854a9f8f82a6dae085d3514897961871fe7005b1 authored over 1 year ago
Add missing type annotations to the `primitives.pyi` fixture (#15871)

This fixes some weird test failures I was seeing locally when trying to
run just the tests in `...

a1fcad5bd6a6f71fac6f1a2f235302b2172ddd7d authored over 1 year ago
Add regression test for fixed bug involving bytes formatting (#15867)

Adds a regression test for #12665, which is a strange bug that was fixed
somewhat by accident

11a94be6f408d5bce391a1ec3931ce7197ca207b authored over 1 year ago
Add option to include docstrings with stubgen (#13284)

### Description

Closes #11965.

Add a --include-docstrings flag to stubgen. This was sugges...

edbfdaa802fd6d951026545b0eddcba5494fbb0b authored over 1 year ago
Add regression test for expand type -> simplified union crash (#15864)

See #13431

Authored by ilevkivskyi

98881d2cbf6b5a410b5eec2971edc80146422bac authored over 1 year ago
Add option to selectively disable --disallow-untyped-calls (#15845)

Fixes #10757

It is surprisingly one of the most upvoted issues. Also it looks quite
easy to...

117b9147d975c51e27dbea9ab415bc0b3bf4ac69 authored over 1 year ago
Document await-not-async error code (#15858)

9787a26f97fd6f216260aac89aa2253ed655195b authored over 1 year ago
[pre-commit.ci] pre-commit autoupdate (#15796)

<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.280 →
v0.0....

041a8af015881655a88f5aff5351576a1ef9010b authored over 1 year ago
'await' in non-async function is a blocking error (#15384)

Fixes, https://github.com/python/mypy/issues/15339

3631528796cbf2a5a825d6a5fb2010853a0a46bd authored over 1 year ago
Apply TypeVar defaults to functions (PEP 696) (#15387)

Use TypeVar defaults to resolve fallback return type of functions.

**Note**: Defaults for Typ...

9dbb1232c0f2158f72d099d35d85252696d308ff authored over 1 year ago
Support __bool__ with Literal in --warn-unreachable (#15645)

This adds support for `Literal` as return type of `__bool__` in the
reachability analysis.

F...

742b5c68cae5b33c7b53768e874d9bab4344567e authored over 1 year ago
Fix inheriting from generic @frozen attrs class (#15700)

Fixes #15658.

0e4521aa2d0b643b67777b4136bc27d97e622c56 authored over 1 year ago
Sync typeshed (#15792)

Source commit:

https://github.com/python/typeshed/commit/fe2ebd69af14d376825f21182d415223bd03...

89c6596f0285b2f4b4b4c93f8f5696cae7a4398e authored over 1 year ago
Add tox.ini to sdist (#15853)

Fixes #14142

7f22aaa5783e25c2bbac81ad520d5b7702b39e4f authored over 1 year ago
Improve error code disabling documentation (#15841)

Provide a concrete example of what file level comments would look like.
Sort text into sections...

cfd01d9f7fdceb5eb8e367e8f1a6a1efb5ede38c authored over 1 year ago
Fix over eager types-google-cloud-ndb suggestion (#15347)

Fixes #15343

c7d2fa1525c9cbf0ab8859fd9ded526658677c28 authored over 1 year ago
The oldest CAPI version we support right now is 3.7 (#15839)

Looks like `capi_version < 3.7` is not supported, so I changed the
lowest version to be `3.7`.
...

d0d63b4644a6bb99793b32548c5197cf7600544f authored over 1 year ago
Document new import error codes (#15840)

See https://github.com/python/mypy/pull/14740

My PR was pretty old and predates the nice chec...

eab5b5083adf1b54ab1691f5ecc5a846863420de authored over 1 year ago
Use error subcodes to differentiate import errors (#14740)

Resolves #9789

Users could use `--disable-error-code=import-untyped` to only ignore
errors a...

78339b97dc911c8c6841184eaddbbc30d0e406da authored over 1 year ago
New type inference: add support for upper bounds and values (#15813)

This is a third PR in series following
https://github.com/python/mypy/pull/15287 and
https://g...

8c219539380208bf5b8d189aafd4dec10f941f98 authored over 1 year ago
Revert "Reconsider constraints involving parameter specifications (#1… (#15832)

…5272)"

This reverts commit 2aaeda4b84a863004a6694a7d562462fbe531ece.

<!-- If this pull re...

a7c48520560c3adf7176b91d16f4d0750ab8dfa9 authored over 1 year ago
Reconsider constraints involving parameter specifications (#15272)

- Fixes https://github.com/python/mypy/issues/15037
- Fixes https://github.com/python/mypy/issu...

2aaeda4b84a863004a6694a7d562462fbe531ece authored over 1 year ago
Update black pre-commit mirror link (#15815)

The black pre-commit mirror is now hosted at:
https://github.com/psf/black-pre-commit-mirror

5617cdd03d12ff73622c8d4b496979e0377b1675 authored over 1 year ago
New type inference: complete transitive closure (#15754)

This is a first follow-up for #15287 (I like how my PR titles sound like
research paper titles,...

0d708cb9c9d5291c1c988ef90a1b77307ed5315c authored over 1 year ago
Fix type narrowing of `== None` and `in (None,)` conditions (#15760)

2b613e5ba1ada5a44f88a90528af834bf9f770a7 authored over 1 year ago
reduce frequency of pre-commit.ci autoupdate PRs (#15798)

54bc37ccade0476a1738b33cd34b6eb35d7124e1 authored over 1 year ago
Update pre-commit deps (#15784)

Closes https://github.com/python/mypy/pull/15526

cb813259c3b9dff6aaa8686793cf6a0634cf1f69 authored over 1 year ago
Change `tuple[]` repr to `tuple[()]` (#15783)

Closes https://github.com/python/mypy/issues/15782

d71afbf89437bdf34566f50923759ead2736d93a authored over 1 year ago
Fix inference for attrs.fields (#15688)

002502a0111852c360f2255830951473bcfec4a7 authored over 1 year ago
Better `tox` configuration (#15777)

It solves two problems:
1. `fix_annotate` and `async_matrix` were removed in
https://github.co...

710ad44916fa89b430407c02a62a6df98f3a06f8 authored over 1 year ago
Raise `RuntimeError` with better error messages (#15778)

While working on https://github.com/python/mypy/pull/15776 I've noticed
that some `RuntimeError...

8792ff1b81c98644c2563d6526dcba633fba719c authored over 1 year ago
Remove the Python 37 environment from the `tox.ini` (#15693)

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
[stubtest] Test `NamedTuple` definitions with default fields (#15774)

This is a test case for https://github.com/python/mypy/pull/15680 from
`stubtest`'s point of view.

14efdf2f1ec098b59b65796b3a37bd84210eca85 authored over 1 year ago
Correctly narrow types for `tuple[type[X], ...]` (#15691)

`flatten_types` forgot about the second way we represent `tuple` inside.

Closes https://githu...

da1853ff7f764157511ece4305a11369f63353f5 authored over 1 year ago
[stubgen] Add required `...` rhs to `NamedTuple` fields with default values (#15680)

Closes https://github.com/python/mypy/issues/15638

a8467c43fb6423cc3f7f330f361e6b5af0bf284f authored over 1 year ago
docs: add missing verb (#15765)

b901d21194400b856a88df62a3d7db871936a50d authored over 1 year ago
Don't flag intentionally empty generators unreachable (#15722)

Co-authored-by: Alex Waygood <[email protected]>

01c6994ac01e3822fe89c5dc46f8bc8b656c8263 authored over 1 year ago
Add `__match_args__` to dataclasses with no fields (#15749)

d2022a0007c0eb176ccaf37a9aa54c958be7fb10 authored over 1 year ago
stubtest: Fix `__mypy-replace` false positives (#15689)

6bdcc92002a5e1a6feb1528d0221802f7514c836 authored over 1 year ago
Raise errors on unbound TypeVars with values (#15732)

Completes a `TODO` item :)

Refs https://github.com/python/mypy/issues/15724

---------

C...

14e7768c3bd8d1164e887ce3becba3459ebcfaa4 authored over 1 year ago
Remove more unused scripts (#15728)

383137baaf36876dcf935c2f5be053b6419097d0 authored over 1 year ago
Update LICENSE with copyright year (#15727)

88c0c644c78e2f31ed25a523ad1f74727f2d647f authored over 1 year ago
Update commit hashes following typeshed sync (#15690)

Followup to #15681

89ad125fa5a31a7c82f267e957d3c94da6b52f61 authored over 1 year ago
tests: skip-path-normalization should be a testcase option (#15660)

The "Skip path normalization" option applies to all [out]s of a test
case, so it's more correct...

b6b6624655826985f75dfd970e2c29f7690ce323 authored over 1 year ago
Remove unneeded `--strict-optional` flags from test cases (#15684)

3f601c3641ecde3557520ddc64a18baa40b12e35 authored over 1 year ago
Revert typeshed ctypes change

Since the plugin provides superior type checking: https://github.com/python/mypy/pull/13987#issue...

1866d28f156c413ce8cc9fec0b317a7d02c28565 authored over 1 year ago
Revert sum literal integer change (#13961)

This is allegedly causing large performance problems, see 13821

typeshed/8231 had zero hits on ...

120af30e706a0e0e29faf915c56c5b6781c9b204 authored over 1 year ago
Sync typeshed

Source commit:
https://github.com/python/typeshed/commit/a83e55990ca7f9b9f93271b9087a3f433f54d94a

d7f9f06710cec4f0bb3cd432786264fba4809897 authored over 1 year ago
Revert use of `ParamSpec` for `functools.wraps`

3240da455e06a292669de22b0ef313dad43cb094 authored over 1 year ago
Remove use of LiteralString in builtins (#13743)

2f6b6e66ced53a0412c46851afb963f35a012f79 authored over 1 year ago
Bump minimum Python type check target version to 3.7 (#15668)

14743a1cdd2a07ecc56ce01cc9d54130fb32931e authored over 1 year ago
Remove `--py2` argument (#15670)

1958cb62f4de7492fb154323f3fdb7a0b6b51fa7 authored over 1 year ago
fix cherry-pick-typeshed (#15672)

It should exclude test_cases too

a538cc98d54031f25e44787a90649ea909877f12 authored over 1 year ago
Update dev version to 1.6.0+dev (#15671)

Created the [release-1.5
branch](https://github.com/python/mypy/tree/release-1.5), updating
ve...

211d74252b506bf0aa7ced5053428004a57c2ae9 authored over 1 year ago
Fix dataclass/protocol crash on joining types (#15629)

The root cause is hacky creation of incomplete symbols; instead
switching to `add_method_to_cla...

7a9418356082092d2cb1585acb816b2074cff43e authored over 1 year ago
Teach `stubgen` to work with `complex` and unary expressions (#15661)

2ebd51e881490f4d20635cde92ef9e3edbbad68c authored over 1 year ago
Fix testLiteralMeets failure (#15659)

39833810ddcd29561f3ffed44703380aa26a68be authored over 1 year ago
Consistently avoid type-checking unreachable code (#15386)

- On module-level, now we'll skip remaining statements once unreachable.
This brings the behavi...

3bf85217386806b0f68bf8857b61379ae2f6ad1e authored over 1 year ago
Add error code "explicit-override" for strict @override mode (PEP 698) (#15512)

Add the strict mode for [PEP
698](https://peps.python.org/pep-0698/#strict-enforcement-per-proj...

dfea43ff96976435ee5f37d1294cca792b8f26cf authored over 1 year ago
type_narrowing.rst: fix syntax, consistency (#15652)

8a5d8f085185c41fce15ab108db236f1d94e5b62 authored over 1 year ago
Add runtime `__slots__` attribute to `attrs` (#15651)

This is similar to https://github.com/python/mypy/pull/15649 but for
`attrs` :)
Refs https://g...

b78f4b536325f77995550f69a260398b8e579734 authored over 1 year ago
Ensure 3.12 tests pass (#15648)

fbe588ff73abd26d1a775e0bfc3db14e933159aa authored over 1 year ago
Add runtime `__slots__` attribute to dataclasses (#15649)

Closes https://github.com/python/mypy/issues/15647

4a1a38eee6b1558c0891584a6fdff84eab49c7a6 authored over 1 year ago
Fix parse test case on Python 3.12 (#15577)

This fixes the test case testFStringWithFormatSpecifierExpression on
Python 3.12.

Strip redu...

235a3bb456ef782ef9a6005616aeea4e3a2a432a authored over 1 year ago
Check tuples of abstract types (#15366)

The PR is quite simple (and I would like to keep it this way):
- Before we were only checking ...

edb41e0490ca01aea5f70a99aad9c8441773cc6e authored over 1 year ago