Skip to content

Commit 0e41136

Browse files
authored
python-dateutil: Add zoneinfo submodule (#9381)
1 parent 805452f commit 0e41136

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from _typeshed import Incomplete
2+
from typing import IO
3+
from typing_extensions import TypeAlias
4+
5+
__all__ = ["get_zonefile_instance", "gettz", "gettz_db_metadata"]
6+
7+
_MetadataType: TypeAlias = dict[str, Incomplete]
8+
9+
class ZoneInfoFile:
10+
zones: dict[Incomplete, Incomplete]
11+
metadata: _MetadataType | None
12+
def __init__(self, zonefile_stream: IO[bytes] | None = ...) -> None: ...
13+
def get(self, name, default: Incomplete | None = ...): ...
14+
15+
def get_zonefile_instance(new_instance: bool = ...) -> ZoneInfoFile: ...
16+
def gettz(name): ...
17+
def gettz_db_metadata() -> _MetadataType: ...
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from _typeshed import Incomplete, StrOrBytesPath
2+
from collections.abc import Sequence
3+
from tarfile import TarInfo
4+
5+
def rebuild(
6+
filename: StrOrBytesPath,
7+
tag: Incomplete | None = ...,
8+
format: str = ...,
9+
zonegroups: Sequence[str | TarInfo] = ...,
10+
metadata: Incomplete | None = ...,
11+
) -> None: ...

0 commit comments

Comments
 (0)