Add defaults for third-party stubs E-H (#9954)

This commit is contained in:
Alex Waygood
2023-03-27 17:09:01 +01:00
committed by GitHub
parent 0c0a58f36d
commit 1cd3ae8e30
58 changed files with 509 additions and 496 deletions

View File

@@ -8,10 +8,10 @@ logger: Logger
def process_file(
fh: Reader,
stop_tag: str = ...,
details: bool = ...,
strict: bool = ...,
debug: bool = ...,
truncate_tags: bool = ...,
auto_seek: bool = ...,
stop_tag: str = "UNDEF",
details: bool = True,
strict: bool = False,
debug: bool = False,
truncate_tags: bool = True,
auto_seek: bool = True,
) -> dict[str, Any]: ...

View File

@@ -32,15 +32,15 @@ class ExifHeader:
offset: int,
fake_exif: bool,
strict: bool,
debug: bool = ...,
detailed: bool = ...,
truncate_tags: bool = ...,
debug: bool = False,
detailed: bool = True,
truncate_tags: bool = True,
) -> None: ...
def s2n(self, offset: int, length: int, signed: bool = ...) -> int: ...
def s2n(self, offset: int, length: int, signed: bool = False) -> int: ...
def n2b(self, offset: int, length: int) -> bytes: ...
def list_ifd(self) -> list[int]: ...
def dump_ifd(
self, ifd: int, ifd_name: str, tag_dict: TagDict | None = ..., relative: int = ..., stop_tag: str = ...
self, ifd: int, ifd_name: str, tag_dict: TagDict | None = None, relative: int = 0, stop_tag: str = "UNDEF"
) -> None: ...
def extract_tiff_thumbnail(self, thumb_ifd: int) -> None: ...
def extract_jpeg_thumbnail(self) -> None: ...

View File

@@ -16,9 +16,9 @@ def setup_logger(debug: bool, color: bool) -> None: ...
class Formatter(logging.Formatter):
color: bool
debug: bool
def __init__(self, debug: bool = ..., color: bool = ...) -> None: ...
def __init__(self, debug: bool = False, color: bool = False) -> None: ...
class Handler(logging.StreamHandler[TextIO]):
color: bool
debug: bool
def __init__(self, log_level: logging._Level, debug: bool = ..., color: bool = ...) -> None: ...
def __init__(self, log_level: logging._Level, debug: bool = False, color: bool = False) -> None: ...

View File

@@ -14,7 +14,7 @@ def make_string_uc(seq: str | list[int]) -> str: ...
def get_gps_coords(tags: Mapping[str, Any]) -> tuple[float, float]: ...
class Ratio(Fraction):
def __new__(cls, numerator: int = ..., denominator: int | None = ...) -> Self: ...
def __new__(cls, numerator: int = 0, denominator: int | None = None) -> Self: ...
@property
def num(self) -> int: ...
@property