mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 02:57:14 +08:00
Add defaults for third-party stubs E-H (#9954)
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user