Skip to content

Commit 81a6d24

Browse files
[python-dateutil] Add missing gettz cache control methods (#15537)
1 parent 69d322e commit 81a6d24

File tree

1 file changed

+3
-1
lines changed
  • stubs/python-dateutil/dateutil/tz

1 file changed

+3
-1
lines changed

stubs/python-dateutil/dateutil/tz/tz.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ def resolve_imaginary(dt: _DateTimeT) -> _DateTimeT: ...
131131
# Singleton type defined locally in a function. Calls itself "GettzFunc".
132132
@type_check_only
133133
class _GetTZ:
134-
def __call__(self, name: str | None = ...) -> tzinfo | None: ...
134+
def __call__(self, name: str | None = None) -> tzinfo | None: ...
135+
def set_cache_size(self, size: int) -> None: ...
136+
def cache_clear(self) -> None: ...
135137
def nocache(self, name: str | None) -> tzinfo | None: ...
136138

137139
gettz: _GetTZ

0 commit comments

Comments
 (0)