You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
219 B
15 lines
219 B
4 years ago
|
class A(object):
|
||
|
x:int = 1
|
||
|
|
||
|
def foo(self:"A") -> int: # OK
|
||
|
return 0
|
||
|
|
||
|
def bar() -> int: # Needs self param
|
||
|
return 0
|
||
|
|
||
|
def baz(self:int) -> int: # Incorrect self type
|
||
|
return 0
|
||
|
|
||
|
A()
|
||
|
|