Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support default values #13

Open
ariebovenberg opened this issue Dec 17, 2021 · 0 comments
Open

Support default values #13

ariebovenberg opened this issue Dec 17, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ariebovenberg
Copy link
Owner

For now, this is disabled:

class A(Protocol):
    b: int = 4

According to PEP544, Protocols can declare an implementation that is usable as an abstract default.

@ariebovenberg ariebovenberg added enhancement New feature or request good first issue Good for newcomers labels Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant