Consistently use '= ...' for optional parameters.

This commit is contained in:
Matthias Kramm
2015-11-09 13:55:00 -08:00
parent 375bf063b1
commit 94c9ce8fd0
278 changed files with 2085 additions and 2085 deletions

View File

@@ -41,8 +41,8 @@ class _Stream:
def write(self, s): ...
def close(self): ...
def tell(self): ...
def seek(self, pos=0): ...
def read(self, size=None): ...
def seek(self, pos=...): ...
def read(self, size=...): ...
class _StreamProxy:
fileobj = ... # type: Any
@@ -74,10 +74,10 @@ class _FileInFile:
size = ... # type: Any
sparse = ... # type: Any
position = ... # type: Any
def __init__(self, fileobj, offset, size, sparse=None) -> None: ...
def __init__(self, fileobj, offset, size, sparse=...) -> None: ...
def tell(self): ...
def seek(self, position): ...
def read(self, size=None): ...
def read(self, size=...): ...
def readnormal(self, size): ...
def readsparse(self, size): ...
def readsparsesection(self, size): ...
@@ -92,8 +92,8 @@ class ExFileObject:
position = ... # type: Any
buffer = ... # type: Any
def __init__(self, tarfile, tarinfo) -> None: ...
def read(self, size=None): ...
def readline(self, size=-1): ...
def read(self, size=...): ...
def readline(self, size=...): ...
def readlines(self): ...
def tell(self): ...
def seek(self, pos, whence=...): ...
@@ -117,11 +117,11 @@ class TarInfo:
offset = ... # type: Any
offset_data = ... # type: Any
pax_headers = ... # type: Any
def __init__(self, name='') -> None: ...
def __init__(self, name=...) -> None: ...
path = ... # type: Any
linkpath = ... # type: Any
def get_info(self, encoding, errors): ...
def tobuf(self, format=..., encoding=..., errors=''): ...
def tobuf(self, format=..., encoding=..., errors=...): ...
def create_ustar_header(self, info): ...
def create_gnu_header(self, info): ...
def create_pax_header(self, info, encoding, errors): ...
@@ -161,27 +161,27 @@ class TarFile:
offset = ... # type: Any
inodes = ... # type: Any
firstmember = ... # type: Any
def __init__(self, name=None, mode='', fileobj=None, format=None, tarinfo=None, dereference=None, ignore_zeros=None, encoding=None, errors=None, pax_headers=None, debug=None, errorlevel=None) -> None: ...
def __init__(self, name=..., mode=..., fileobj=..., format=..., tarinfo=..., dereference=..., ignore_zeros=..., encoding=..., errors=..., pax_headers=..., debug=..., errorlevel=...) -> None: ...
posix = ... # type: Any
@classmethod
def open(cls, name=None, mode='', fileobj=None, bufsize=..., **kwargs): ...
def open(cls, name=..., mode=..., fileobj=..., bufsize=..., **kwargs): ...
@classmethod
def taropen(cls, name, mode='', fileobj=None, **kwargs): ...
def taropen(cls, name, mode=..., fileobj=..., **kwargs): ...
@classmethod
def gzopen(cls, name, mode='', fileobj=None, compresslevel=9, **kwargs): ...
def gzopen(cls, name, mode=..., fileobj=..., compresslevel=..., **kwargs): ...
@classmethod
def bz2open(cls, name, mode='', fileobj=None, compresslevel=9, **kwargs): ...
def bz2open(cls, name, mode=..., fileobj=..., compresslevel=..., **kwargs): ...
OPEN_METH = ... # type: Any
def close(self): ...
def getmember(self, name): ...
def getmembers(self): ...
def getnames(self): ...
def gettarinfo(self, name=None, arcname=None, fileobj=None): ...
def list(self, verbose=True): ...
def add(self, name, arcname=None, recursive=True, exclude=None, filter=None): ...
def addfile(self, tarinfo, fileobj=None): ...
def extractall(self, path='', members=None): ...
def extract(self, member, path=''): ...
def gettarinfo(self, name=..., arcname=..., fileobj=...): ...
def list(self, verbose=...): ...
def add(self, name, arcname=..., recursive=..., exclude=..., filter=...): ...
def addfile(self, tarinfo, fileobj=...): ...
def extractall(self, path=..., members=...): ...
def extract(self, member, path=...): ...
def extractfile(self, member): ...
def makedir(self, tarinfo, targetpath): ...
def makefile(self, tarinfo, targetpath): ...
@@ -223,14 +223,14 @@ class _ringbuffer(list):
class TarFileCompat:
tarfile = ... # type: Any
def __init__(self, file, mode='', compression=...) -> None: ...
def __init__(self, file, mode=..., compression=...) -> None: ...
def namelist(self): ...
def infolist(self): ...
def printdir(self): ...
def testzip(self): ...
def getinfo(self, name): ...
def read(self, name): ...
def write(self, filename, arcname=None, compress_type=None): ...
def write(self, filename, arcname=..., compress_type=...): ...
def writestr(self, zinfo, bytes): ...
def close(self): ...