1 from typing import Any, Dict, NamedTuple, Tuple, Union
2 from typing_extensions import Literal
4 class _TagInfo(NamedTuple):
11 class TagInfo(_TagInfo):
14 value: Any | None = ...,
16 type: _TagType | None = ...,
17 length: int | None = ...,
18 enum: dict[str, int] | None = ...,
20 def cvt_enum(self, value): ...
22 def lookup(tag: int, group: int | None = ...) -> _TagInfo: ...
29 SIGNED_BYTE: Literal[6]
31 SIGNED_SHORT: Literal[8]
32 SIGNED_LONG: Literal[9]
33 SIGNED_RATIONAL: Literal[10]
38 _TagType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
39 _TagTuple = Union[Tuple[str, _TagType, int], Tuple[str, _TagInfo, int, Dict[str, int]]]
41 TAGS_V2: dict[int, _TagTuple]
42 TAGS_V2_GROUPS: dict[int, dict[int, _TagTuple]]
45 LIBTIFF_CORE: set[int]