Message382061
python raises error `Undefined class X` when you declaring parameter type or return type of method as the self of class:
class MyClass:
def mymethod(self, a: MyClass): # parameter type is class self
pass
# or
class MyClass:
def mymethod(self) -> MyClass: # return type is class self
pass
# or both of them
error `Undefined class ...` will be raised. |
|
Date |
User |
Action |
Args |
2020-11-29 12:58:55 | parsampsh | set | recipients:
+ parsampsh |
2020-11-29 12:58:55 | parsampsh | set | messageid: <1606654735.38.0.791756891374.issue42503@roundup.psfhosted.org> |
2020-11-29 12:58:55 | parsampsh | link | issue42503 messages |
2020-11-29 12:58:55 | parsampsh | create | |
|