Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
Description
typing module documentation
Typo description
A typo in docstring for override decorator. Under Usage:: we see the following code.
classBase: defmethod(self) ->None: ... passclassChild(Base): @overridedefmethod(self) ->None: super().method()Both ... and pass are used in Base's class method. Since ... has already been used, pass statement does not relate to the method at all, causing IndentationError.
Suggested solution: remove ...
classBase: defmethod(self) ->None: passclassChild(Base): @overridedefmethod(self) ->None: super().method()Line 3348 in 985679f
| def method(self) -> None: ... |