Created
May 24, 2024 22:00
-
-
Save mypy-play/272a0f25b3cc0c6be5c1e4ef427802fe to your computer and use it in GitHub Desktop.
Shared via mypy Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Protocol, final | |
@final | |
class Inter(Protocol): | |
x: int | |
def y(self) -> int: | |
... | |
@property | |
def z(self) -> int: | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment