mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
mypy gets confused if you leave out 'self' (#1871)
This commit is contained in:
committed by
Guido van Rossum
parent
c1c9fac63f
commit
c5bb3aa547
@@ -18,8 +18,8 @@ if sys.version_info >= (3, 3):
|
||||
raise_on_defect = ... # type: bool
|
||||
if sys.version_info >= (3, 5):
|
||||
mange_from = ... # type: bool
|
||||
def __init__(**kw: Any) -> None: ...
|
||||
def clone(**kw: Any) -> 'Policy': ...
|
||||
def __init__(self, **kw: Any) -> None: ...
|
||||
def clone(self, **kw: Any) -> 'Policy': ...
|
||||
def handle_defect(self, obj: Message,
|
||||
defect: MessageDefect) -> None: ...
|
||||
def register_defect(self, obj: Message,
|
||||
|
||||
Reference in New Issue
Block a user