Added some missing parameter annotations and type arguments detected by pyright. (#5061)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2021-02-23 11:46:53 -07:00
committed by GitHub
parent c7c025ae08
commit a1f16da64e
8 changed files with 16 additions and 12 deletions

View File

@@ -322,9 +322,13 @@ class TarInfo:
def linkpath(self, linkname: str) -> None: ...
def get_info(self) -> Mapping[str, Union[str, int, bytes, Mapping[str, str]]]: ...
def tobuf(self, format: Optional[int] = ..., encoding: Optional[str] = ..., errors: str = ...) -> bytes: ...
def create_ustar_header(self, info: Mapping[str, Union[str, int, bytes, Mapping[str, str]]], encoding: str, errors: str): ...
def create_gnu_header(self, info: Mapping[str, Union[str, int, bytes, Mapping[str, str]]], encoding: str, errors: str): ...
def create_pax_header(self, info: Mapping[str, Union[str, int, bytes, Mapping[str, str]]], encoding: str): ...
def create_ustar_header(
self, info: Mapping[str, Union[str, int, bytes, Mapping[str, str]]], encoding: str, errors: str
) -> bytes: ...
def create_gnu_header(
self, info: Mapping[str, Union[str, int, bytes, Mapping[str, str]]], encoding: str, errors: str
) -> bytes: ...
def create_pax_header(self, info: Mapping[str, Union[str, int, bytes, Mapping[str, str]]], encoding: str) -> bytes: ...
@classmethod
def create_pax_global_header(cls, pax_headers: Mapping[str, str]) -> bytes: ...
def isfile(self) -> bool: ...