mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add missing '-> None' to all __init__ methods.
This commit is contained in:
@@ -27,7 +27,7 @@ class Dialect:
|
||||
skipinitialspace = ... # type: Any
|
||||
lineterminator = ... # type: Any
|
||||
quoting = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class excel(Dialect):
|
||||
delimiter = ... # type: Any
|
||||
@@ -65,13 +65,13 @@ class DictWriter:
|
||||
restval = ... # type: Any
|
||||
extrasaction = ... # type: Any
|
||||
writer = ... # type: Any
|
||||
def __init__(self, f, fieldnames, restval='', extrasaction='', dialect='', *args, **kwds): ...
|
||||
def __init__(self, f, fieldnames, restval='', extrasaction='', dialect='', *args, **kwds) -> None: ...
|
||||
def writeheader(self): ...
|
||||
def writerow(self, rowdict): ...
|
||||
def writerows(self, rowdicts): ...
|
||||
|
||||
class Sniffer:
|
||||
preferred = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def sniff(self, sample, delimiters=None): ...
|
||||
def has_header(self, sample): ...
|
||||
|
||||
Reference in New Issue
Block a user