mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use '...' instead of 'pass' for function bodies
This commit is contained in:
@@ -5,15 +5,15 @@
|
||||
|
||||
from typing import List, Tuple, Dict, Undefined, GenericType
|
||||
|
||||
def bench(a, b: str, *args, **kwargs) -> float: pass
|
||||
def bench(a, b: str, *args, **kwargs) -> float: ...
|
||||
|
||||
|
||||
class spamdict(object):
|
||||
def getstate() -> int: pass
|
||||
def setstate(a: int) -> None: pass
|
||||
def getstate() -> int: ...
|
||||
def setstate(a: int) -> None: ...
|
||||
|
||||
class spamlist(object):
|
||||
def classmeth(*args, **kwargs) -> tuple: pass
|
||||
def getstate() -> int: pass
|
||||
def setstate(a: int) -> None: pass
|
||||
def staticmeth(*args, **kwargs) -> tuple: pass
|
||||
def classmeth(*args, **kwargs) -> tuple: ...
|
||||
def getstate() -> int: ...
|
||||
def setstate(a: int) -> None: ...
|
||||
def staticmeth(*args, **kwargs) -> tuple: ...
|
||||
|
||||
Reference in New Issue
Block a user