strip-hints icon indicating copy to clipboard operation
strip-hints copied to clipboard

Strip Protocol classes

Open d3dave opened this issue 3 years ago • 0 comments

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

d3dave avatar Oct 11 '21 16:10 d3dave