-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
cleanupFix the leftovers of a major migrationFix the leftovers of a major migrationtopic-pythonCode quality of reccmp itselfCode quality of reccmp itself
Description
When you need to reference the type of a class inside of the class declaration, your options are to quote the class name:
class Hello:
@classmethod
def create(cls) -> "Hello":
passor use typing.Self, introduced in Python 3.11.
We still support Python 3.10 so we need to import Self from typing_extensions instead.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
cleanupFix the leftovers of a major migrationFix the leftovers of a major migrationtopic-pythonCode quality of reccmp itselfCode quality of reccmp itself