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.
|
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()
|
|
|