At one point the comment was true but I ended doing a workaround
enabling a wrapper in proto.py of typing_extensions.Self and using it
here turning the comment untrue.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
# improperly typed. They are improperly typed because typing.Self
# didn't exist and the old correct way is a PITA to write (and
# remember). Thus a lot of classmethods are return the exact class
- # which is technically incorrect. This fine class is guilty of the same
- # sin. :-)
+ # which is technically incorrect.
return cast(Self, cls.from_json(data))
@classmethod