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

Strip Protocol classes #15

Open
d3dave opened this issue Oct 11, 2021 · 0 comments
Open

Strip Protocol classes #15

d3dave opened this issue Oct 11, 2021 · 0 comments

Comments

@d3dave
Copy link

d3dave commented Oct 11, 2021

When encountering typing.Protocol classes, strip-hints doesn't strip the class definition, resulting in invalid syntax:

class Style(Protocol):
    #color: str
    #effect: str

which raises IndentationError: expected an indented block

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant