Fix get_tag and get_tags type hints
@@ -144,22 +144,28 @@ class AlignedSegment:
) -> None: ...
def has_tag(self, tag: str) -> bool: ...
@overload
- def get_tag(self, tag: str, with_value_type: Literal[False]) -> TagValue: ...
+ def get_tag(self, tag: str, with_value_type: Literal[False] = ...) -> TagValue: ...
@overload
- def get_tag(self, tag, with_value_type: Literal[True]) -> Tuple[TagValue, str]: ...
+ def get_tag(
+ self, tag: str, with_value_type: Literal[True]
+ ) -> Tuple[TagValue, str]: ...
@overload
def get_tag(
- self, tag, with_value_type: bool = ...
+ self, tag: str, with_value_type: bool
) -> Union[TagValue, Tuple[TagValue, str]]: ...
@overload
def get_tags(
- self, with_value_type: Literal[False]
+ self, with_value_type: Literal[False] = ...
) -> List[Tuple[str, TagValue]]: ...
@overload
def get_tags(
self, with_value_type: Literal[True]
) -> List[Tuple[str, TagValue, str]]: ...
@overload
+ def get_tags(
+ self, with_value_type: bool
+ ) -> Union[List[Tuple[str, TagValue]], List[Tuple[str, TagValue, str]]]: ...
+ @overload
def get_tags(
self, with_value_type: bool = ...
) -> Union[List[Tuple[str, TagValue, str]], List[Tuple[str, TagValue]]]: ...
