-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Insights: python/mypy
Overview
Could not load contribution data
Please try again later
19 Pull requests merged by 10 people
-
Experimental: allow inline/anonymous TypedDicts
#17457 merged
Jul 7, 2024 -
Fix crash on self-type in callable protocol
#17499 merged
Jul 6, 2024 -
Fix crash on NamedTuple with method and error in function
#17498 merged
Jul 6, 2024 -
Fix daemon crash on invalid type in TypedDict
#17495 merged
Jul 6, 2024 -
Fix cross-variable type-narrowing example
#17488 merged
Jul 6, 2024 -
Run Python 3.13 tests in CI (with failures allowed)
#17484 merged
Jul 6, 2024 -
Revert "Have namedtuple
__replace__
returnSelf
"#17496 merged
Jul 6, 2024 -
Refactor: remove temporary
def
fromsemanal_classprop.check_protocol_status
#17486 merged
Jul 5, 2024 -
Bump version to 1.12.0+dev
#17467 merged
Jul 4, 2024 -
Have namedtuple
__replace__
returnSelf
#17475 merged
Jul 3, 2024 -
Add
__replace__
for dataclasses#17469 merged
Jul 3, 2024 -
Fix help message for --no-namespace-packages.
#17472 merged
Jul 3, 2024 -
Infer unions for ternary expressions
#17427 merged
Jul 2, 2024 -
Mention --enable-incomplete-feature=NewGenericSyntax
#17462 merged
Jul 2, 2024 -
Further improvements to functools.partial handling
#17425 merged
Jul 1, 2024 -
Fix type comments crash inside generic definitions
#16849 merged
Jul 1, 2024 -
Sync typeshed
#17458 merged
Jul 1, 2024 -
Use Python 3.12 for mypy_primer
#17456 merged
Jul 1, 2024 -
Fix typechecking for async generators
#17452 merged
Jun 30, 2024
10 Pull requests opened by 7 people
-
Fix 2 Typos in docs
#17455 opened
Jun 30, 2024 -
[Stubgenc] Generate Type Annotations from `__annotations__`
#17463 opened
Jul 2, 2024 -
Try assuming covariance during inference
#17468 opened
Jul 2, 2024 -
Add basic support for PEP 702 (@deprecated).
#17476 opened
Jul 3, 2024 -
Fix https://github.com/python/mypy/issues/10768
#17485 opened
Jul 5, 2024 -
Add `--strict-bool` flag to prohib treating `bool` as `int`
#17487 opened
Jul 5, 2024 -
Drop support for running with Python 3.8
#17492 opened
Jul 5, 2024 -
Fix `gen_is_coroutine` for Python 3.13
#17501 opened
Jul 7, 2024 -
Fix `_PyObject_FastCall` for Python 3.13
#17502 opened
Jul 7, 2024 -
Fix `_PyList_Extend` for Python 3.13
#17503 opened
Jul 7, 2024
45 Issues closed by 7 people
-
TypedDict Nested Dictionaries?
#5149 closed
Jul 7, 2024 -
Anonymous and inline declaration of `TypedDict` types
#9884 closed
Jul 7, 2024 -
Type-narrowing union of 3 types using generic func leads to `object` type
#17500 closed
Jul 7, 2024 -
Segmentation fault on callable protocol with Self annotation
#16629 closed
Jul 6, 2024 -
"INTERNAL ERROR: maximum semantic analysis iteration count reached" using NamedTuple
#16814 closed
Jul 6, 2024 -
Class format of TypedDict does not produce proper coverage
#17477 closed
Jul 6, 2024 -
dmypy crash with “Invalid type comment or annotation”
#10007 closed
Jul 6, 2024 -
`namedtuple.__replace__` should return `Self`
#17497 closed
Jul 6, 2024 -
Recursion Error for Protocols with Self
#17474 closed
Jul 6, 2024 -
Generic param bound to `type` isn't valid as a type
#17494 closed
Jul 6, 2024 -
Enum member assigned to a variable is not accepted with Literal
#17493 closed
Jul 6, 2024 -
Pattern matching: Mypy doesn't narrow tuple[int, int] | int
#17490 closed
Jul 5, 2024 -
mypy approves call with wrong number of arguments for decorated function
#17491 closed
Jul 5, 2024 -
Allow to write using builder pattern
#17489 closed
Jul 5, 2024 -
(🐞) Mypy doesn't use `python_executable` to find plugins
#12575 closed
Jul 5, 2024 -
Behaviour of typing overloads in `Protocol`and their implementations?
#17480 closed
Jul 4, 2024 -
Dataclasses should define `__replace__` in 3.13
#17471 closed
Jul 3, 2024 -
Confusing description for --no-namespace-packages
#17466 closed
Jul 3, 2024 -
error: Incompatible return value type (got "Point", expected "Point") [return-value]
#14015 closed
Jul 3, 2024 -
Restrictions on MYPYPATH
#7604 closed
Jul 3, 2024 -
Regression on exclude definition in setup.cfg
#12567 closed
Jul 3, 2024 -
Protocols and `... if ... else ...`
#5392 closed
Jul 3, 2024 -
mypy infers conditional expression of Dict[str, object] to be object instead of union
#7835 closed
Jul 3, 2024 -
Order of clause in one-line if/else statement yields different mypy behaviors
#8519 closed
Jul 3, 2024 -
Use Union for tuple fallback?
#7616 closed
Jul 3, 2024 -
Type of conditional expression is object when using Protocol
#11722 closed
Jul 3, 2024 -
a joining of two types becomes `object` not a union
#11440 closed
Jul 3, 2024 -
Function return type TypeVar is assumed to be base class for TypeVar bound to UnionType
#15479 closed
Jul 3, 2024 -
Type hints of tuple not used effectively when calling a function on its values
#16119 closed
Jul 3, 2024 -
error: "type" has no attribute "from_private_key"
#16153 closed
Jul 3, 2024 -
Adding third `ABC` type to a loop causes false positive type error
#16509 closed
Jul 3, 2024 -
`Callable` not deduced correctly
#16868 closed
Jul 3, 2024 -
False exception error in except clause with a ternary conditional operator
#7356 closed
Jul 3, 2024 -
False exception error in raise statement with a ternary conditional operator
#5128 closed
Jul 3, 2024 -
Ternary expression of context managers is inferred as object
#16055 closed
Jul 3, 2024 -
Expression has type "function", variable has type "Callable[[], None]"
#10740 closed
Jul 2, 2024 -
`functools.partial` assignment is ignored if a different type is used in a different branch
#11269 closed
Jul 1, 2024 -
Reassigning variable with `functools.partial` results in `<nothing>`
#14024 closed
Jul 1, 2024 -
functools.partial can't infer the return type of generic type fucntion
#15053 closed
Jul 1, 2024 -
functools.partial confuses mypy's type variable binding
#10299 closed
Jul 1, 2024 -
Crash when using type comments inside a generic class with constrained type variables.
#16649 closed
Jul 1, 2024 -
Generator with await not considered an AsyncGenerator
#10534 closed
Jun 30, 2024
12 Issues opened by 9 people
-
TypeGuard does not narrow when statement compares for identity (`is True`)
#17483 opened
Jul 4, 2024 -
Async generators are detected as synchronous generators erroneously
#17482 opened
Jul 4, 2024 -
Union of ParamSpec?
#17481 opened
Jul 4, 2024 -
(🐞) overlapping `Callable`s are incorrectly joined into `builtins.function`
#17479 opened
Jul 3, 2024 -
(🐞) incompatible `Callable`s are incorrectly joined into `builtins.function`
#17478 opened
Jul 3, 2024 -
Error suddenly appears from Python 3.10 and above.
#17473 opened
Jul 3, 2024 -
(🐞) `type[T]` can't be assigned to `Protocol` with `__name__`
#17470 opened
Jul 3, 2024 -
(🐞) `--update-data` removes escapes
#17465 opened
Jul 2, 2024 -
functools.partial false negative with higher order functions
#17461 opened
Jul 1, 2024 -
Direction of comparison operator in error message does not depend on direction in code
#17460 opened
Jul 1, 2024
23 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.
-
Honor return type of `__new__` even if not a subclass
#15182 commented on
Jul 6, 2024 • 6 new comments -
Incorrectly narrowed Literal in while loops
#17096 commented on
Jul 6, 2024 • 3 new comments -
Use union instead of join for unifying types
#12056 commented on
Jul 3, 2024 • 3 new comments -
Cannot infer type argument with TypeVarTuple and Callback protocol
#17453 commented on
Jul 2, 2024 • 2 new comments -
Run without module detection logic
#10428 commented on
Jul 5, 2024 • 2 new comments -
Fix Tuple Special Cases from Docstrings
#17440 commented on
Jul 1, 2024 • 1 new comment -
fix: Mismatched signature between checker plugin API and implementation
#17343 commented on
Jul 1, 2024 • 1 new comment -
Allow self binding for generic ParamSpec
#17123 commented on
Jul 3, 2024 • 1 new comment -
[pre-commit.ci] pre-commit autoupdate
#17085 commented on
Jul 2, 2024 • 1 new comment -
Believe more __new__ return types
#16020 commented on
Jul 5, 2024 • 1 new comment -
@property returning descriptor instance triggers false positive
#9416 commented on
Jul 6, 2024 • 1 new comment -
Join computed suboptimally with multiple inheritance
#4373 commented on
Jul 3, 2024 • 1 new comment -
1.11 Release Tracking Issue
#17285 commented on
Jul 2, 2024 • 1 new comment -
Wrong type inference with "yield from" from an Iterator class
#17449 commented on
Jul 2, 2024 • 1 new comment -
Improving support for Annotated[Type, ...] annotations
#12619 commented on
Jul 1, 2024 • 1 new comment -
`mypy` crashes with `KeyError: 'type_is'`
#17250 commented on
Jul 1, 2024 • 1 new comment -
Detect if shell is in activated virtual environment, but mypy is not installed in it.
#17214 commented on
Jul 5, 2024 • 0 new comments -
(🐞) No error when assigning non-concrete type object to variable of `type` bound with a union (`Protocol`, `abstract`)
#13172 commented on
Jul 3, 2024 • 0 new comments -
Python 3.13 tracking issue
#17264 commented on
Jul 6, 2024 • 0 new comments -
Offer a simpler way to resolve metaclass conflicts
#14033 commented on
Jul 6, 2024 • 0 new comments -
Constrained TypeVar fails to narrow on left hand side of conditional expression
#4134 commented on
Jul 3, 2024 • 0 new comments -
False positive example, can't interact with `isinstance`
#9226 commented on
Jul 3, 2024 • 0 new comments -
functools.partial incorrectly handles constrained generic function arguments
#17411 commented on
Jul 1, 2024 • 0 new comments