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 #1424
Fixes https://github.com/mypyc/mypyc/issues/939
Not that I really like `hasattr(...
b29051c8979ae83835204f7813e4307b05d73156 authored over 2 years agoFix #11795
The fix is straightforward (but ideally generic callables should be normalized in...
c2949e969ffcba848595d0851a9193fe1bc3e0a1 authored over 2 years ago
There isn't really a good reason to have a default here, feels like it
mainly just increases th...
Fixes #2569
c688f4ad025d1617322293f95150814a0b5bf0e2 authored over 2 years agoe3827a1b950f83332656ad9c51ca8eea06ea2234 authored over 2 years ago
1a3d601b9a7270a8dec856cb15a8a6e26f4eb193 authored over 2 years ago
Fixes #13537
I also discovered another similar false negative, when a property in protocol w...
625006386e491ce596db1d1c820656e4d6b6966c authored over 2 years agoFixes #13536
4cfacc63631e6787b4a16f8aff80f767d2a3f968 authored over 2 years ago09b8b550abe3982726047cc0ed68a9b6fa91745c authored over 2 years ago
Fixes #5018
Fixes #5439
Fixes #10850
The implementation is simple but not the most beauti...
3efbc5c5e910296a60ed5b9e0e7eb11dd912c3ed authored over 2 years agobe495c72f551fe94748edafacc747eb07b252f5c authored over 2 years ago
This pull request:
1. Fixes #8334. Overriding a dataclass attribute with a method or
pr...
During the error handling transform we have access to always
defined attributes, which allows u...
Fixes #10090
Unfortunately we cannot fully support this use case. Mypy requires explicit typ...
a9bc366ae501ccced78a2746b6eac07b93d7b15e authored over 2 years ago49983fc4955b74280226b768e2153f4407903ba9 authored over 2 years ago
Per-module error codes were added in #13502, let's recommend using them.
The existing type ig...
da56c974a57688f5c7989ef3abd86cd1d1608793 authored over 2 years agod7c0bb5048d96d5fbcd5005e9f1b8183a148923e authored over 2 years ago
Fixes #6801
Fixes #10577
Fixes #12642
Fixes #12337
Fixes #10639
Fixes #13390
All these...
fd6760cfc7b4eac6cda9c7a7532bad3eb421b012 authored over 2 years ago
This might slightly improve performance when using native ints,
and it's consistent with how ot...
Fixes #13521
9e14abaac7e432319f217cc6b8e17ccbe840720f authored over 2 years ago
Basic support for arithmetic, bitwise and comparison ops using native
int types i32 and i64. Al...
0406826e0613640265ee4522e5ab4051a78eafd8 authored over 2 years ago
3864db67d7f23c06343a72840e28b7956a8a8f46 authored over 2 years ago
These are somewhat buggy and modern per-module options should be
preferred. I can't find any us...
I forgot to add this to yesterdays PR #13501
caff030c100a40ac05962c1626081db5b3b54a3f authored over 2 years agoFixes #9440
This is a bit non-trivial because I decided to make per-module code act as overri...
d68b1c657c4a02502ad0ccc1d33a1075753211e8 authored over 2 years agoFixes #12241
17ec3ca25e2618cb8eec1f1075b2c24fb4f9a93b authored over 2 years ago
The code involved is really old. The mentioned test case does not
trigger any errors. I cannot ...
55d757e4910a0ae73175a71f3c0f02caad53e059 authored over 2 years ago
Blocking errors are a bad user experience and there's no reason for this
one to be one / there ...
3d015afb3840a2e51d602a73dffb8aa2d2507171 authored over 2 years ago
a56fcacdd6ebb3271d0bdb6785889eae69e374f5 authored over 2 years ago
Fixes #4536
This use case is specified by PEP 544 but was not implemented. Only instances (no...
9431d47587983a39f83696ce991b1173bc445b25 authored over 2 years agoFixes #13499
Today this code reads like "stubs should all target 3.7" and this
is indeed how...
1f308e9745960c3359c07a99c450a981d737c90a authored over 2 years ago
57de8dbfaef646bf6f962377f5e1a6ec1b47889f authored over 2 years ago
Fixes #6393
This is unspecified behavior in terms of PEP 544, so we just try to
do somethin...
Fixes #13226
f83835cd291d7413d89451806a41dd3f5ab40b5c authored over 2 years ago8ece68559d75889a6c0c315f4a93e0bf3087d3f0 authored over 2 years ago
Fixes #9282
It looks like `super()` checking is too strict for methods with self-types. Mypy...
a6e3454ad1ceb6a458dd80aa114c143f8f06e11c authored over 2 years agod6feadf4a7104c72f443ec122eb42285eeb08888 authored over 2 years ago
1efb110db77a674ed03a0eb6b8d327801581fac0 authored over 2 years ago
The same as ErrorWatcher constructor.
4bb76885cdca370db2828da699ac8b43c9eeefab authored over 2 years agoa50c9ffc020ebd317df298503ce96209dd9c133e authored over 2 years ago
Co-authored-by: Bas van Beek <[email protected]>
0c0f071ef5d41c24182a5a94a5db882f9e917802 authored over 2 years agoe981431380c8cfe73945a4ed5b81e25a5784475f authored over 2 years ago
* Fix daemon crashes related to ParamSpec and TypeVarTuple
Fix daemon crash when using fine-g...
be6adaeeeb592f2249cb33c533fb708ca260c2bb authored over 2 years agoFixes #4441
This uses a different approach than the initial attempt, but I re-used some of t...
397398167edf02ac63ac7e7e2fa8d766443e3ab5 authored over 2 years agod89b28d973c3036ef154c9551b961d9119761380 authored over 2 years ago
Fixes #4125
Previously the code compared the original signatures for properties. Now we compa...
40dd719a536589d375ce8ef6cf5f9c6588bbea29 authored over 2 years ago`subject='',` -> `subject: str = '',`
6208400b811bcbea8dfa5b73be64ca0d780a3653 authored over 2 years agoaa285e3d8a2287bfe6da643353d72f72e67f9049 authored over 2 years ago
d315403bd02b7ead77c556af251d91cf889a1daf authored over 2 years ago
Fixes #13456
The fix required me to refactor the Constraint class to preserve the original ty...
08ddf1c2d40054b321d49f6f9525e57909eb5399 authored over 2 years ago2756944dc1c141f3e4cc35d5e1dab6b3b28c9563 authored over 2 years ago
92d3f0732737ccc44f3db71f89668c023f806e2a authored over 2 years ago
adb36bfe7a8a93572cc1e7bd05def182e3041f16 authored over 2 years ago
The issue was exposed by merge of subtype visitors. Fix is actually trivial, but the diff is big...
2ba64510ad1d4829b420c2bc278990f037e03721 authored over 2 years ago9ba4491780be8d48b16d0c34f3ccaade56727af5 authored over 2 years ago
3aebb87548a852b90b276a6a65148bdceab0e9c1 authored over 2 years ago
Source commit:
https://github.com/python/typeshed/commit/5435ed76ef9346dfc3309d6ee21e1791c4b4ecd7
e6a052799e43b8e37ad817df27e1fe19b63c7dec authored over 2 years ago
76062706590a74186e1396414969948c44e83457 authored over 2 years ago
5f488e200ee8f17c59bf022ce93ddb5dd24b599d authored over 2 years ago
Co-authored-by: Nikita Sobolev <[email protected]>
551f8f4064c2158d47917b418726a01a2a797a7d authored over 2 years ago48bd26e942abbeb7dbb9dede281b335641928ef2 authored over 2 years ago
4a7d0c89bdc15a1fa001d7923990ada5bf214313 authored over 2 years ago
* Allow unpacking from TypeVars by resolving bounds
TypeVars aren't iterable, but their bound...
7d95e2e139ebda3b81ba456b1598cbac047ac843 authored over 2 years ago
Source commit:
https://github.com/python/typeshed/commit/a92da58328aa259184ff45bb7408e82426fb56...
Progress on mypyc/mypyc#868.
23146c4305616e10d38bf38cd18c5e36696d5c00 authored over 2 years ago23ee1e7aff357e656e3102435ad0fe3b5074571e authored over 2 years ago
Also fix returning a value from inside a try block when the finally block
does a yield. (Which ...
More generally, we shouldn't be advising use of --no-strict-optional
487b736743637142a53e49525b935ccad5ccc5fd authored over 2 years ago3aaa7a7b27b70cb39916d5ee2b48ff3fd8914499 authored over 2 years ago
Co-authored-by: Shantanu <[email protected]>
9a9bc3b807bb11986122dd3896e6eb3b61e2ccf8 authored over 2 years agoThis now falls back to being handled due to bool being typed as final
7bddcf66a6627454b048438fed696c8b9e03b331 authored over 2 years ago76648ba4d3e06880f2f9889e58efdc7eb65d6374 authored over 2 years ago
Fixes #3863
This builds on top of some infra I added for recursive types (Ref #13297). Implem...
dc5f89142cb36debc0e804a472f49f51448d76f3 authored over 2 years agoFixes #685
This builds on top of some infra I added for recursive types (Ref https://github.c...
8deeaf37421aa31d369465179231fdde3dc0d7e7 authored over 2 years agoTypeshed currently has 6 allowlist entries relating to `__vectorcalloffset__` attributes in 3.10...
fd7040ef92c060bb8455e43d349aba77bfa72da8 authored over 2 years ago1d9ca648bf86c051139acc70e06d6be2a5126d57 authored over 2 years ago
f8fc26ef76491eae97190e7fb052c695a1a25890 authored over 2 years ago
8020f783dcd2b225bc160ae434d3a84ff3d72818 authored over 2 years ago
2ea5459c274be83db1f73e6e2c64a4d1d0c379ff authored over 2 years ago
When building a module for web assembly with pygame-web ready to
use toolchain (clang 15 based...
12860a937119e1bed1199b4521af8d167dc3f0f8 authored over 2 years ago
`script_path` was entirely useless since `bin_dir` had been dropped long time
ago by #5690. Thi...
It is a minor change to fix the example in https://github.com/python/typeshed/issues/7904
234b1613f81429d17a8345874182563d39583e82 authored over 2 years ago
* Add support for Final in literal_hash()
* Add test for tuple
d6c56cf8ed76495ac5b7d54c5594b86dee4345bb authored over 2 years ago
Fixes #1362
I delete the old cryptic error message and instead:
* Enable the situations that...
With #13391 (adding `from __future__ import annotations` everywhere), it's now possible to remov...
3a13b8eb05ed7a0e4707ab4e1f2a3db445852eb6 authored over 2 years ago
Fixes https://github.com/python/mypy/issues/708
Fixes https://github.com/python/mypy/issues/548...
Resolves #5876
Co-authored-by: hauntsaninja <>
Co-authored-by: Ivan Levkivskyi <levkivskyi@g...
Fixes #5374
As discussed in the issue, we should allow this common use case, although it may ...
52f1dd309c80d456027351fd6c0905e53dcde11a authored over 2 years agoImplement some constraints tests for typevar tuples.
816aeb34b3061528d3ff1a76401463d84d27c3bb authored over 2 years ago835bb9d7160f3bd8ec9d94c365e6ef0d04ff143a authored over 2 years ago
b6f08a90d54dbbec5a03dab04b6115b842779fa1 authored over 2 years ago
36944f60d26b0c1d7f9de96e7778a8792961c1f9 authored over 2 years ago
This will be nice for if anyone wants to use slicker new syntax for mypy internals without
wor...