-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Insights: python/mypy
Overview
Could not load contribution data
Please try again later
34 Pull requests merged by 10 people
-
Remove --new-type-inference flag
#19570 merged
Aug 4, 2025 -
Recognize buffer protocol special methods
#19581 merged
Aug 4, 2025 -
Introduce temporary named expressions for
match
subjects#18446 merged
Aug 3, 2025 -
[mypyc] feat: unwrap NewType types to their base types for optimized code paths
#19497 merged
Aug 3, 2025 -
Interpret bare ClassVar as inferred, not Any
#19573 merged
Aug 3, 2025 -
Support attribute access on enum members correctly
#19422 merged
Aug 3, 2025 -
Follow-up after #19025: test and cleanup
#19294 merged
Aug 3, 2025 -
Check slots assignments on self types
#19332 merged
Aug 3, 2025 -
[docs] Update common_issues.rst: update information about reveal type & locals
#19059 merged
Aug 2, 2025 -
Mention in the Any documentation how object is preferable
#19103 merged
Aug 2, 2025 -
[docs] Update common_issues.rst: mention orjson in the Mypy slow section
#19058 merged
Aug 2, 2025 -
[docs] Include a real listing of the flags strict enables in the online documentation
#19062 merged
Aug 2, 2025 -
[stubtest] Allow runtime-existing aliases of types marked as
@type_check_only
#19568 merged
Aug 2, 2025 -
Add stubtest test for property aliases
#19567 merged
Aug 2, 2025 -
Add internal flag to disable expression cache
#19569 merged
Aug 2, 2025 -
Update crash issue template to use syntax highlighting in code blocks
#19527 merged
Aug 2, 2025 -
Optimize bind_self() and deprecation checks
#19556 merged
Aug 2, 2025 -
fix: prevent crash on dataclass with PEP695 TypeVarTuple on py3.13
#19565 merged
Aug 2, 2025 -
Keep trivial instances and aliases during expansion
#19543 merged
Aug 1, 2025 -
feat: new mypyc primitive for weakref.ref
#19099 merged
Jul 31, 2025 -
Explicitly check case‐sensitivity of file system for tests
#19540 merged
Jul 31, 2025 -
Update changelog for 1.17.1
#19550 merged
Jul 31, 2025 -
Update test requirements
#19539 merged
Jul 30, 2025 -
[mypyc] Enable free threading when compiling multiple modules
#19541 merged
Jul 30, 2025 -
[mypyc] Make type objects immortal if using free threading
#19538 merged
Jul 30, 2025 -
Use cache for DictExpr as well
#19536 merged
Jul 30, 2025 -
Use cache for OpExpr
#19523 merged
Jul 29, 2025 -
perf: deduplicate
fast_container_type
andfast_dict_type
items before joining#19409 merged
Jul 29, 2025 -
Move self argument checks to a later phase - after decorator application, if any
#19490 merged
Jul 28, 2025 -
Try simple-minded call expression cache
#19505 merged
Jul 28, 2025 -
[mypyc] Fix list.pop primitive on free-threaded builds
#19522 merged
Jul 28, 2025 -
[mypyc] Only generate an export table if using separate compilation
#19521 merged
Jul 28, 2025 -
Various minor docstring and comment updates
#19519 merged
Jul 28, 2025
15 Pull requests opened by 8 people
-
[mypyc] Add prefix to attributes of generator classes
#19535 opened
Jul 29, 2025 -
[wip] [mypyc] feat: quasi-constant folding for DictExpr and TupleExpr
#19542 opened
Jul 30, 2025 -
Move Windows tests from oldest to newest version
#19545 opened
Jul 30, 2025 -
Update update_data.py: make the space in error comments optional
#19546 opened
Jul 30, 2025 -
Document mypy exit codes
#19549 opened
Jul 31, 2025 -
Allow skip and xfail to both be applied to test cases
#19552 opened
Jul 31, 2025 -
refactor `visit_conditional_expr` to fix ternary behavior (option 2)
#19562 opened
Aug 1, 2025 -
refactor `visit_conditional_expr` to fix ternary behavior (option 1)
#19563 opened
Aug 1, 2025 -
[stubtest] Check runtime availability of private types not marked `@type_check_only`
#19574 opened
Aug 2, 2025 -
Fix TypeGuard with call on temporary object
#19577 opened
Aug 3, 2025 -
[mypyc] Fix async mypyc tests on Windows
#19578 opened
Aug 3, 2025 -
[mypyc] Provide instructions for resolving missing test module on Windows
#19579 opened
Aug 3, 2025 -
Do not use dictionary in CallableType
#19580 opened
Aug 3, 2025 -
[mypyc] feat: optimize C code for str.count
#19582 opened
Aug 4, 2025 -
Fix `--package-root` tests for Windows and Python 3.13+
#19583 opened
Aug 4, 2025
34 Issues closed by 5 people
-
Exhaustive checks with `assert_never` when using `match` on a 2-tuple fails
#16650 closed
Aug 3, 2025 -
match narrowing fails when the operand is an `await` expression
#17230 closed
Aug 3, 2025 -
Type narrowing broken with dict items
#18440 closed
Aug 3, 2025 -
1.16 Release Planning
#18739 closed
Aug 3, 2025 -
1.15 Release Tracking Issue
#18487 closed
Aug 3, 2025 -
[CI]: `mypy-primer(0)` timeout due to long checking of `colour`
#19403 closed
Aug 3, 2025 -
Bare ClassVar should infer type instead of defaulting to Any
#5587 closed
Aug 3, 2025 -
Exhaustiveness checking false positives when using `match self` or `match self.value` inside an Enum
#15186 closed
Aug 3, 2025 -
Enum instance type ignored in match/case statements
#13841 closed
Aug 3, 2025 -
Faulty type inference for `Enum` attributes
#15454 closed
Aug 3, 2025 -
Type of an Enum nonmember is wrong when accessed through a member
#19418 closed
Aug 3, 2025 -
False positive for "Non-overlapping identity check" when comparing Enum variants
#10910 closed
Aug 3, 2025 -
Enum elements accessed via 'self' have 'auto' type
#12107 closed
Aug 3, 2025 -
Enum items are mistyped
#11368 closed
Aug 3, 2025 -
TypeVar with union bound changes return type of `type(t)()`
#18478 closed
Aug 3, 2025 -
Slots not checked if `Self` annotation is present
#19331 closed
Aug 3, 2025 -
(🐞) Invalid per-module options in inline configuration are silently ignored
#12342 closed
Aug 2, 2025 -
Should include a real listing of the flags strict enables in the online documentation.
#19061 closed
Aug 2, 2025 -
Stubtest thinks a property alias isn't read-only in stubs
#19509 closed
Aug 2, 2025 -
Generic dataclass with TypeVarTuple crashes Mypy
#19559 closed
Aug 2, 2025 -
mypy error with generics typing and singledispatch
#19564 closed
Aug 2, 2025 -
func-returns-value check is overly restrictive and prevents legitimate None-returning functions
#19555 closed
Aug 1, 2025 -
crash for a very specific invocation of mypy: `assert isinstance(visitor, SyntheticTypeVisitor)`
#19286 closed
Aug 1, 2025 -
1.15.0 regression: `list.append` false positive with `Signals` enum
#18628 closed
Jul 31, 2025 -
[docs] Update Code Conventions to reflect the switch from flake8 to ruff
#19498 closed
Jul 31, 2025 -
Wildly inconsistent performance for seemingly trivial changes to source code
#14271 closed
Jul 30, 2025 -
Mypy errors out for deeply nested dictionaries
#14636 closed
Jul 30, 2025 -
Mypy hangs indefinitely trying to analyse a file with huge nested dicts
#14970 closed
Jul 30, 2025 -
Pathological performance on big list and dict literals
#8247 closed
Jul 30, 2025 -
Mypy stuck with polynomial using NumPy
#14978 closed
Jul 29, 2025 -
False positive "Method must have at least one argument" with `@enum.member`
#18720 closed
Jul 28, 2025 -
:bug: Methods converted to `staticmethod`s using a decorator not treated as `staticmethod`s
#13434 closed
Jul 28, 2025 -
Mypy doesn't recognize `@staticmethod`-like decorator
#18989 closed
Jul 28, 2025 -
Erroneous "Self argument missing" error when decorators are used
#19392 closed
Jul 28, 2025
26 Issues opened by 19 people
-
Narrowing doesn't work on a typevar when calling a method with Self type
#19584 opened
Aug 4, 2025 -
TypeGuard/TypeIs broken on __call__ with fresh class
#19575 opened
Aug 2, 2025 -
Mypy crash on master with property alias with setters
#19572 opened
Aug 2, 2025 -
Type `mypy/config_parser.py` without `Any`
#19566 opened
Aug 2, 2025 -
Irregular inference with ternary based on attribute.
#19561 opened
Aug 1, 2025 -
`meet_types` gives unexpected results when meeting literal and Instance
#19560 opened
Aug 1, 2025 -
Mypyc runtime TypeError exceptions when you change inherited method to a staticmethod
#19558 opened
Aug 1, 2025 -
Mypyc gcc compilation fails with specific duplicate variable definition
#19557 opened
Aug 1, 2025 -
Stderr in regular tests should probably go to out as well
#19554 opened
Jul 31, 2025 -
Unexpected order dependence when assigning to multiple targets
#19553 opened
Jul 31, 2025 -
join is not always permutation invariant
#19551 opened
Jul 31, 2025 -
Config errors sometimes result in exit code 0
#19548 opened
Jul 31, 2025 -
"# E:" lines (etc) in test files are ignored at the beginning of lines
#19547 opened
Jul 31, 2025 -
`[mypyc]` indexing fixed-length tuples is extremely slow and gets slower with increse in length
#19537 opened
Jul 30, 2025 -
Literal list ternary behave unexpected
#19534 opened
Jul 29, 2025 -
TypeVarTuple instantiation with the empty tuple in Generic not being recognized as such
#19533 opened
Jul 29, 2025 -
Type narrowing of indexing a StrEnum created in a function
#19532 opened
Jul 29, 2025 -
ImportError: dynamic module does not define module export function
#19531 opened
Jul 29, 2025 -
Type narrowing of `TypeVar` with abstract bases classes causes `[return-value]` error
#19530 opened
Jul 29, 2025 -
No type narrowing when `isinstance` list comprehension is assigned to the same variable
#19528 opened
Jul 29, 2025 -
Incorrect handling of overloads with `defaultdict` and `MutableMapping`
#19525 opened
Jul 28, 2025 -
Multiple extensions using `get_base_class_hook` interfere with each other
#19524 opened
Jul 28, 2025 -
Classmethods as attrs converters
#19520 opened
Jul 28, 2025
39 Unresolved conversations
Sometimes conversations happen on old items that aren’t yet closed. Here is a list of all the Issues and Pull Requests with unresolved conversations.
-
Fix #19491, crash when using enable_error_code value of wrong type in pyproject.toml
#19494 commented on
Aug 3, 2025 • 7 new comments -
Enable pretty by default
#19510 commented on
Jul 31, 2025 • 4 new comments -
WIP: new mypyc primitive for `weakref.ref.__call__`
#19145 commented on
Aug 4, 2025 • 2 new comments -
Improve match statement union narrowing/inference
#17600 commented on
Aug 3, 2025 • 2 new comments -
[mypyc] feat: cache len for iterating over immutable types and expressions with length known at compile time
#19503 commented on
Aug 4, 2025 • 1 new comment -
[mypyc] feat: true_dict_rprimitive for optimized dict fastpath usage
#19499 commented on
Aug 4, 2025 • 1 new comment -
Split import-untyped into import-untyped and import-untyped-stubs-available
#19101 commented on
Jul 29, 2025 • 0 new comments -
Fix/attrs init overload
#19104 commented on
Jul 31, 2025 • 0 new comments -
Handle `__hash__ = None` in somewhat more intuitive fashion
#19168 commented on
Aug 1, 2025 • 0 new comments -
feat: new mypyc primitives for weakref.proxy
#19217 commented on
Aug 4, 2025 • 0 new comments -
Do not display import-related errors after module-level always false assert
#19347 commented on
Aug 1, 2025 • 0 new comments -
Fix `Enum.value` inference for `Enum`s with `@cache`d methods
#19374 commented on
Aug 1, 2025 • 0 new comments -
[PEP 696] Fix swapping TypeVars with defaults.
#19449 commented on
Jul 28, 2025 • 0 new comments -
[PEP 695] Fix incorrect Variance Computation with Polymorphic Methods.
#19466 commented on
Jul 28, 2025 • 0 new comments -
[match-case] fix matching against `typing.Callable` and `Protocol` types.
#19471 commented on
Jul 28, 2025 • 0 new comments -
feat: `__repr__` method for RefExpr and NameExpr
#19486 commented on
Aug 4, 2025 • 0 new comments -
feat(test): mypyc tests for container creation from `range`
#19511 commented on
Aug 4, 2025 • 0 new comments -
feat: index-range err code
#19513 commented on
Aug 4, 2025 • 0 new comments -
[match-case] Fix narrowing of class pattern with union-argument.
#19517 commented on
Aug 1, 2025 • 0 new comments -
[wip] [mypyc] feat: unroll certain for loops with known params
#19518 commented on
Aug 3, 2025 • 0 new comments -
Allow mypy to flag `str` matching against `Sequence[str]` as an error
#11001 commented on
Jul 29, 2025 • 0 new comments -
Allow ignore to be on any line of multi-line statement
#12341 commented on
Jul 30, 2025 • 0 new comments -
Include binary wheels for ARM Windows
#18593 commented on
Jul 30, 2025 • 0 new comments -
EncodingWarning when running under PyPy
#17057 commented on
Jul 31, 2025 • 0 new comments -
1.17 Release Planning
#19306 commented on
Jul 31, 2025 • 0 new comments -
False positive typing.Self has incompatible type when method uses class' generic type
#16871 commented on
Jul 31, 2025 • 0 new comments -
`func-returns-value` false positive for union type?
#19433 commented on
Aug 1, 2025 • 0 new comments -
Type hint `__lt__` as `(self, other: Self) -> bool` makes mypy think that `__le__` is not supported.
#16711 commented on
Aug 1, 2025 • 0 new comments -
No `TypeVar` variable inference in ternary operators
#18817 commented on
Aug 1, 2025 • 0 new comments -
plugin point for `ClassDef`
#18729 commented on
Aug 1, 2025 • 0 new comments -
Mypy/dmypy takes over 16GB of memory
#17105 commented on
Aug 3, 2025 • 0 new comments -
Improve precision of mypy performance tracking
#14358 commented on
Aug 3, 2025 • 0 new comments -
Meta issue tracker, pt 2
#16472 commented on
Aug 3, 2025 • 0 new comments -
Disallow literal `0` step in slice expressions
#18065 commented on
Jul 29, 2025 • 0 new comments -
PEP 702 (@deprecated): improve the handling of overloaded functions and methods
#18682 commented on
Aug 4, 2025 • 0 new comments -
Consider property access from class objects (now for real)
#18969 commented on
Jul 29, 2025 • 0 new comments -
Add a flag `--enable-all-error-codes`, which enables all error codes
#19048 commented on
Jul 31, 2025 • 0 new comments -
feat(mypyc): proper weakref support
#19056 commented on
Aug 4, 2025 • 0 new comments -
Improve cli help somewhat
#19073 commented on
Aug 3, 2025 • 0 new comments