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.
ChocoPy/pa2-tests/core/bad_class_method.py

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