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

Support for hasattr() checks (#13544)

Fixes #1424
Fixes https://github.com/mypyc/mypyc/issues/939

Not that I really like `hasattr(...

b29051c8979ae83835204f7813e4307b05d73156 authored over 2 years ago
Fix daemon crashes on generic methods (#13551)

Fix #11795

The fix is straightforward (but ideally generic callables should be normalized in...

c2949e969ffcba848595d0851a9193fe1bc3e0a1 authored over 2 years ago
checker: remove default message from check_subtype (#13546)

There isn't really a good reason to have a default here, feels like it
mainly just increases th...

92118a9ad8a9b652533f07385488aaef382f8bac authored over 2 years ago
Allow binder to understand assignment via def (#13508)

Fixes #2569

c688f4ad025d1617322293f95150814a0b5bf0e2 authored over 2 years ago
checker: disallow specifying both ErrorMessage and code (#13535)

e3827a1b950f83332656ad9c51ca8eea06ea2234 authored over 2 years ago
`is_named_instance` should be a `TypeGuard` (#13543)

1a3d601b9a7270a8dec856cb15a8a6e26f4eb193 authored over 2 years ago
Fix interaction between ClassVar in protocols and class objects (#13545)

Fixes #13537

I also discovered another similar false negative, when a property in protocol w...

625006386e491ce596db1d1c820656e4d6b6966c authored over 2 years ago
Ignore partial type in base when inferring/checking (#13538)

Fixes #13536

4cfacc63631e6787b4a16f8aff80f767d2a3f968 authored over 2 years ago
selfcheck: enable the `ignore-without-code` error code (#13534)

09b8b550abe3982726047cc0ed68a9b6fa91745c authored over 2 years ago
Allow using modules as subtypes of protocols (#13513)

Fixes #5018
Fixes #5439
Fixes #10850

The implementation is simple but not the most beauti...

3efbc5c5e910296a60ed5b9e0e7eb11dd912c3ed authored over 2 years ago
Don't skip flake8 for the `misc` directory (#13533)

be495c72f551fe94748edafacc747eb07b252f5c authored over 2 years ago
Improve error handling for dataclass inheritance (#13531)

This pull request:

1. Fixes #8334. Overriding a dataclass attribute with a method or
pr...

3f0ac21fd45de0359a297870eaed3d54475adba9 authored over 2 years ago
[mypyc] Infer more precise error kinds for some ops (#13524)

During the error handling transform we have access to always
defined attributes, which allows u...

b06beab8cdab1964b8c5ceec18e28fa1ba889d10 authored over 2 years ago
Fix crash on bare Final in dataclass (#13528)

Fixes #10090

Unfortunately we cannot fully support this use case. Mypy requires explicit typ...

a9bc366ae501ccced78a2746b6eac07b93d7b15e authored over 2 years ago
tox: remove outdate coverage targets (#13520)

49983fc4955b74280226b768e2153f4407903ba9 authored over 2 years ago
Warn on module level type ignore with error code (#13512)

Per-module error codes were added in #13502, let's recommend using them.

The existing type ig...

da56c974a57688f5c7989ef3abd86cd1d1608793 authored over 2 years ago
runtests: Remove unused tasks and targets (#13519)

d7c0bb5048d96d5fbcd5005e9f1b8183a148923e authored over 2 years ago
Fix crashes on special forms in protocol bodies (#13526)

Fixes #6801
Fixes #10577
Fixes #12642
Fixes #12337
Fixes #10639
Fixes #13390

All these...

fd6760cfc7b4eac6cda9c7a7532bad3eb421b012 authored over 2 years ago
[mypyc] Mark magic-overlapping error handler branches as rare (#13525)

This might slightly improve performance when using native ints,
and it's consistent with how ot...

74e1737fd5a726f9f6fc7363660550ee5abc5f14 authored over 2 years ago
Fix error codes option serialization (#13523)

Fixes #13521

9e14abaac7e432319f217cc6b8e17ccbe840720f authored over 2 years ago
[mypyc] Basic test-only support for i32 and i64 (#13018)

Basic support for arithmetic, bitwise and comparison ops using native
int types i32 and i64. Al...

3e9dd3c2221c71b5fba0042f18aec50c81811f1d authored over 2 years ago
Use `--strict` for selfcheck (#13464)

0406826e0613640265ee4522e5ab4051a78eafd8 authored over 2 years ago
Fix match crash on unions including tuples (#13514)

3864db67d7f23c06343a72840e28b7956a8a8f46 authored over 2 years ago
Remove show_none_errors and strict_optional_whitelist (#13507)

These are somewhat buggy and modern per-module options should be
preferred. I can't find any us...

80c09d56c080cad93847eeee50ddddf5e3abab06 authored over 2 years ago
Add type inference for class object vs generic protocol (#13511)

I forgot to add this to yesterdays PR #13501

caff030c100a40ac05962c1626081db5b3b54a3f authored over 2 years ago
Allow per-module error codes (#13502)

Fixes #9440

This is a bit non-trivial because I decided to make per-module code act as overri...

d68b1c657c4a02502ad0ccc1d33a1075753211e8 authored over 2 years ago
Mention how to test third party stubs (#13505)

Fixes #12241

17ec3ca25e2618cb8eec1f1075b2c24fb4f9a93b authored over 2 years ago
Assert original type exists during function redefinition (#13509)

The code involved is really old. The mentioned test case does not
trigger any errors. I cannot ...

448e657ef38f1e13127ea9595da95817e3493575 authored over 2 years ago
stubtest: analyze `metaclass` of types, refs #13327 (#13331)

55d757e4910a0ae73175a71f3c0f02caad53e059 authored over 2 years ago
Make invalid type ignore comments non-blocking (#13506)

Blocking errors are a bad user experience and there's no reason for this
one to be one / there ...

d9750c606c047a41edd8d6482310858f7bf955b3 authored over 2 years ago
stubtest: reuse is_named_instance (#13504)

3d015afb3840a2e51d602a73dffb8aa2d2507171 authored over 2 years ago
Add test cases for method property overrides (#13503)

a56fcacdd6ebb3271d0bdb6785889eae69e374f5 authored over 2 years ago
Allow classes as protocol implementations (#13501)

Fixes #4536

This use case is specified by PEP 544 but was not implemented. Only instances (no...

9431d47587983a39f83696ce991b1173bc445b25 authored over 2 years ago
Allow stubs to use newer syntax than 3.7 (#13500)

Fixes #13499

Today this code reads like "stubs should all target 3.7" and this
is indeed how...

09b0fa45036964dfa4964da2675a81b8efba65c3 authored over 2 years ago
AssignmentExpr is not a BindableExpression (#13483)

1f308e9745960c3359c07a99c450a981d737c90a authored over 2 years ago
Use supertype context for variable type inference (#13494)

57de8dbfaef646bf6f962377f5e1a6ec1b47889f authored over 2 years ago
Fix crash when nested class appears in a protocol (#13489)

Fixes #6393

This is unspecified behavior in terms of PEP 544, so we just try to
do somethin...

61a9b92297e1363b5bd99855df51e9a84be8da69 authored over 2 years ago
Change binder to understand deleted `TypeInfo` (#13481)

Fixes #13226

f83835cd291d7413d89451806a41dd3f5ab40b5c authored over 2 years ago
Increase mypy_primer shards (#13496)

8ece68559d75889a6c0c315f4a93e0bf3087d3f0 authored over 2 years ago
Allow using super() in methods with self-types (#13488)

Fixes #9282

It looks like `super()` checking is too strict for methods with self-types. Mypy...

a6e3454ad1ceb6a458dd80aa114c143f8f06e11c authored over 2 years ago
Use new tuples types in several modules (#13487)

d6feadf4a7104c72f443ec122eb42285eeb08888 authored over 2 years ago
Remove old unused scripts from `misc/` (#13286)

1efb110db77a674ed03a0eb6b8d327801581fac0 authored over 2 years ago
Use correct type annotation for `.filter_errors` (#13486)

The same as ErrorWatcher constructor.

4bb76885cdca370db2828da699ac8b43c9eeefab authored over 2 years ago
Unskip `testTrailingCommaParsing` test (#13484)

a50c9ffc020ebd317df298503ce96209dd9c133e authored over 2 years ago
Allow __init__ and __new__ to return NoReturn (#13480)

Co-authored-by: Bas van Beek <[email protected]>

0c0f071ef5d41c24182a5a94a5db882f9e917802 authored over 2 years ago
Fix overloaded static methods on instances (#13482)

e981431380c8cfe73945a4ed5b81e25a5784475f authored over 2 years ago
Fix daemon crashes related to ParamSpec and TypeVarTuple (#13381)

* Fix daemon crashes related to ParamSpec and TypeVarTuple

Fix daemon crash when using fine-g...

be6adaeeeb592f2249cb33c533fb708ca260c2bb authored over 2 years ago
Allow using TypedDict for more precise typing of **kwds (#13471)

Fixes #4441

This uses a different approach than the initial attempt, but I re-used some of t...

397398167edf02ac63ac7e7e2fa8d766443e3ab5 authored over 2 years ago
Reenable `testFlagsFile` (#13479)

d89b28d973c3036ef154c9551b961d9119761380 authored over 2 years ago
Allow overriding attribute with a settable property (#13475)

Fixes #4125

Previously the code compared the original signatures for properties. Now we compa...

40dd719a536589d375ce8ef6cf5f9c6588bbea29 authored over 2 years ago
Add missing type hint in docs (#13478)

`subject='',` -> `subject: str = '',`

6208400b811bcbea8dfa5b73be64ca0d780a3653 authored over 2 years ago
Use correct pos-only arg formatting in `pretty_callable` (#13474)

aa285e3d8a2287bfe6da643353d72f72e67f9049 authored over 2 years ago
`ParamSpec` must not raise errors on valid attr access (#13472)

d315403bd02b7ead77c556af251d91cf889a1daf authored over 2 years ago
Fall back to satisfiable constraints in unions (#13467)

Fixes #13456

The fix required me to refactor the Constraint class to preserve the original ty...

08ddf1c2d40054b321d49f6f9525e57909eb5399 authored over 2 years ago
Make sure `ParamSpec` suffix and arg kind do match (#13468)

2756944dc1c141f3e4cc35d5e1dab6b3b28c9563 authored over 2 years ago
Add `types-psutil` as a build requirement (#13470)

92d3f0732737ccc44f3db71f89668c023f806e2a authored over 2 years ago
Remove some unnecessary imports of `typing.Type` (#13469)

adb36bfe7a8a93572cc1e7bd05def182e3041f16 authored over 2 years ago
Fix overload overlap check for UninhabitedType (#13461)

The issue was exposed by merge of subtype visitors. Fix is actually trivial, but the diff is big...

2ba64510ad1d4829b420c2bc278990f037e03721 authored over 2 years ago
Use correct `tuple` type (#13465)

9ba4491780be8d48b16d0c34f3ccaade56727af5 authored over 2 years ago
Modernize a few `Counter`/`DefaultDict` annotations (#13463)

3aebb87548a852b90b276a6a65148bdceab0e9c1 authored over 2 years ago
Sync typeshed (#13457)

Source commit:
https://github.com/python/typeshed/commit/5435ed76ef9346dfc3309d6ee21e1791c4b4ecd7

4d4326ac5ddfcb796184acb7646f7c31266f9126 authored over 2 years ago
Remove remaining type comments in favour of PEP 526 annotations (#13454)

e6a052799e43b8e37ad817df27e1fe19b63c7dec authored over 2 years ago
Allow `ParamSpecArgs` to be unpacked (#13459)

76062706590a74186e1396414969948c44e83457 authored over 2 years ago
Run a type check on `scripts` and most of `misc` in CI (#13458)

5f488e200ee8f17c59bf022ce93ddb5dd24b599d authored over 2 years ago
Add support for classmethods and staticmethods in add_method (#13397)

Co-authored-by: Nikita Sobolev <[email protected]>

551f8f4064c2158d47917b418726a01a2a797a7d authored over 2 years ago
Allow narrowing metaclasses, refs #11671 (#13359)

48bd26e942abbeb7dbb9dede281b335641928ef2 authored over 2 years ago
Fix incorrect type in `misc/test_case_to_actual.py` test case (#13452)

4a7d0c89bdc15a1fa001d7923990ada5bf214313 authored over 2 years ago
Allow unpacking from TypeVars with iterable bounds (#13425)

* Allow unpacking from TypeVars by resolving bounds

TypeVars aren't iterable, but their bound...

7d95e2e139ebda3b81ba456b1598cbac047ac843 authored over 2 years ago
Sync typeshed (#13386)

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

bf143d919cef0d04316338babe49f45fc76db8ae authored over 2 years ago
[mypyc] Implement `async for` as a statement and in comprehensions (#13444)

Progress on mypyc/mypyc#868.

23146c4305616e10d38bf38cd18c5e36696d5c00 authored over 2 years ago
Use builtin generics and PEP 604 for type annotations wherever possible (#13427)

23ee1e7aff357e656e3102435ad0fe3b5074571e authored over 2 years ago
[mypyc] Implement `async with` (#13442)

Also fix returning a value from inside a try block when the finally block
does a yield. (Which ...

3ec1849528bd9ae8fb744620cfa24705ee7d39b0 authored over 2 years ago
Remove advice for upgrading from 0.600 (#13441)

More generally, we shouldn't be advising use of --no-strict-optional

487b736743637142a53e49525b935ccad5ccc5fd authored over 2 years ago
Use more `Final` and `TypeAlias` types (#13433)

3aaa7a7b27b70cb39916d5ee2b48ff3fd8914499 authored over 2 years ago
stubtest: don't error for a missing submodule if the submodule name is private (#13417)

Co-authored-by: Shantanu <[email protected]>

9a9bc3b807bb11986122dd3896e6eb3b61e2ccf8 authored over 2 years ago
Remove blocking special cased error for bool subclass (#13420)

This now falls back to being handled due to bool being typed as final

7bddcf66a6627454b048438fed696c8b9e03b331 authored over 2 years ago
CI: Add `workflow_dispatch` as a trigger for several workflows (#13423)

76648ba4d3e06880f2f9889e58efdc7eb65d6374 authored over 2 years ago
Enable generic TypedDicts (#13389)

Fixes #3863

This builds on top of some infra I added for recursive types (Ref #13297). Implem...

dc5f89142cb36debc0e804a472f49f51448d76f3 authored over 2 years ago
Enable generic NamedTuples (#13396)

Fixes #685

This builds on top of some infra I added for recursive types (Ref https://github.c...

8deeaf37421aa31d369465179231fdde3dc0d7e7 authored over 2 years ago
stubtest: ignore `__vectorcalloffset__` (#13416)

Typeshed currently has 6 allowlist entries relating to `__vectorcalloffset__` attributes in 3.10...

fd7040ef92c060bb8455e43d349aba77bfa72da8 authored over 2 years ago
Add more `from __future__ import annotations`; remove more quotes (#13412)

1d9ca648bf86c051139acc70e06d6be2a5126d57 authored over 2 years ago
stubtest: fix broken error message for async/sync mismatch (#13414)

f8fc26ef76491eae97190e7fb052c695a1a25890 authored over 2 years ago
Update flake8 setup (#13405)

8020f783dcd2b225bc160ae434d3a84ff3d72818 authored over 2 years ago
stubtest: use more f-strings (#13413)

2ea5459c274be83db1f73e6e2c64a4d1d0c379ff authored over 2 years ago
[mypyc] Fix clang warning on different signs integer (#13239)

When building a module for web assembly with pygame-web ready to
use toolchain (clang 15 based...

07562b693c3f3d7c2824e96fb188671adb43b6d8 authored over 2 years ago
CI: skip `mypy_primer` for more directories (#13415)

12860a937119e1bed1199b4521af8d167dc3f0f8 authored over 2 years ago
Remove useless parameter script_path of mypy.main() (#13399)

`script_path` was entirely useless since `bin_dir` had been dropped long time
ago by #5690. Thi...

599af7fc878a555a0bbcee1ed4363097cfcd8351 authored over 2 years ago
Fix type inference for tuples in iterable context (#13406)

It is a minor change to fix the example in https://github.com/python/typeshed/issues/7904

234b1613f81429d17a8345874182563d39583e82 authored over 2 years ago
Fix type narrowing on TypedDict with key name in Final variable (#11813)

* Add support for Final in literal_hash()
* Add test for tuple

c8a22898901602de1784802bd215865c0e200074 authored over 2 years ago
Fix crash on deferred upper bound with recursive aliases enabled (#13410)

d6c56cf8ed76495ac5b7d54c5594b86dee4345bb authored over 2 years ago
Enable support for decorated properties where possible (#13409)

Fixes #1362

I delete the old cryptic error message and instead:
* Enable the situations that...

b8055512bd3cc54a0b82f8382ac39b3430cf9941 authored over 2 years ago
Remove quotes from annotations (#13407)

With #13391 (adding `from __future__ import annotations` everywhere), it's now possible to remov...

3a13b8eb05ed7a0e4707ab4e1f2a3db445852eb6 authored over 2 years ago
Fix callable instance variable support (take 2) (#13400)

Fixes https://github.com/python/mypy/issues/708
Fixes https://github.com/python/mypy/issues/548...

dc9c3040910d2d239f16a4e9d64c12f60b85afc6 authored over 2 years ago
Make any callable compatible with (*args: Any, **kwargs: Any) (#11203)

Resolves #5876

Co-authored-by: hauntsaninja <>
Co-authored-by: Ivan Levkivskyi <levkivskyi@g...

a0e2a2d4444ebe4af3da51ac77d93ca87cdf803c authored over 2 years ago
Allow generic decorators on abstarct classes (#13398)

Fixes #5374

As discussed in the issue, we should allow this common use case, although it may ...

52f1dd309c80d456027351fd6c0905e53dcde11a authored over 2 years ago
Implement some constraints tests for typevar tuples. (#13384)

Implement some constraints tests for typevar tuples.

816aeb34b3061528d3ff1a76401463d84d27c3bb authored over 2 years ago
Update CONTRIBUTING.md with formatting instructions (#13395)

835bb9d7160f3bd8ec9d94c365e6ef0d04ff143a authored over 2 years ago
docs: use ParamSpec in "Declaring decorators" (#13237)

b6f08a90d54dbbec5a03dab04b6115b842779fa1 authored over 2 years ago
Fix `" "` line joining after `black` reformat (#13394)

36944f60d26b0c1d7f9de96e7778a8792961c1f9 authored over 2 years ago
Add `from __future__ import annotations` everywhere. (#13391)

This will be nice for if anyone wants to use slicker new syntax for mypy internals without
wor...

b1364c59ec23d66cbac9d483b80781d33ce5c429 authored over 2 years ago