An instance of a final class should be treated as satisfying a TypeVar bound to it, after being narrowed #19255
Labels
bug
mypy got something wrong
topic-type-narrowing
Conditional type narrowing / binder
topic-type-variables
Bug Report
See title, I think this is the cause of the remaining issue for #9424. I think this is a followup to #19183.
To Reproduce
Expected Behavior
No errors
Actual Behavior
There's an error:
Your Environment
Reproduced on mypy play.
mypy.ini
(and other config files): N/AThe text was updated successfully, but these errors were encountered: