mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Optional static typing for Python

Results 1055 mypy issues
Sort by recently updated
recently updated
newest added

**Feature** We only ship x64 Windows binary wheels (compiled using mypyc). Maybe we should also ship ARM Windows wheels? To make this work, we'd probably need help from somebody who...

feature
needs discussion
performance

This rule seems correct when `Self` appears in a covariant position, like ```python class MyGeneric[T]: # ill-defined, what's the type of MySequence.example? example: ClassVar[Self] # error: ClassVar cannot contain Self...

bug

**Bug Report** If mypy 1.19.0 is installed in `PyPy 7.3.20 with Python (3.11.13)` the wheel for `librt` can't be build because of several compiler errors. Build output ``` building 'librt.internal'...

bug
topic-usability

**Bug Report** **To Reproduce** - Create an `app.py` file with this inside: ```python from __future__ import annotations from typing import Protocol # PROTOCOL class ServiceProto(Protocol): @property def value(self) -> int:...

bug
topic-protocols
topic-descriptors

*Memo: - `mypy test.py` - mypy 1.18.2 - Python 3.14.0 - Windows 11 Instantiating the object of the class with the wrong syntax setting constraint types to the 2nd and...

feature

Resolves #17714 , fixes #11723 Support for f-string checking was already partially implemented. Consider this code: ```python f"{123:abc}" "{:abc}".format(123) ``` Mypy ran these lines through the format checker. The call...

upnext

- Fixes #18817 - added unit test `testTernaryOperatorWithDefault` - Fixes #19561 - added unit tests `testLambdaTernary{, IndirectAttribute, DoubleIndirectAttribute}` - Fixes #19534 - added unit tests `test{List, Set, Dict}ComprehensionTernary` - Fixes...

upnext

### **What is being changed? ⁉️** This PR is an attempt to fix issue #18922 from the myPy repo. Issue link: https://github.com/python/mypy/issues/18922#issuecomment-2818754738 ### **How is it implemented? 🛠️** Original approach...

pending

Added logic to resolve types for instance variables and handle partial types. (Explain how this PR changes mypy.)

pending

# Fixes #20234 --- Correct Enum Literal Narrowing for `in` Operator with Tuples ## Problem When using the `in` operator with tuples containing enum members, mypy failed to narrow the...

pending