Closed
Description
Bug Report, reproduction, & actual behaviour
See mypy Playground:
import typing as t
class A(t.Protocol):
def method(self) -> None:
var: t.Final = 0 # mypy: Protocol member cannot be final [misc]
Expected Behavior
No issues
Your Environment
- Mypy version used: 1.10
- Mypy command-line flags: None
- Mypy configuration options from
mypy.ini
(and other config files): None - Python version used: 3.10, 3.12