[python-dateutil] Add missing gettz cache control methods (#15537)

This commit is contained in:
Brian Schubert
2026-03-22 14:30:19 -04:00
committed by GitHub
parent 69d322e01e
commit 81a6d245c2
+3 -1
View File
@@ -131,7 +131,9 @@ def resolve_imaginary(dt: _DateTimeT) -> _DateTimeT: ...
# Singleton type defined locally in a function. Calls itself "GettzFunc".
@type_check_only
class _GetTZ:
def __call__(self, name: str | None = ...) -> tzinfo | None: ...
def __call__(self, name: str | None = None) -> tzinfo | None: ...
def set_cache_size(self, size: int) -> None: ...
def cache_clear(self) -> None: ...
def nocache(self, name: str | None) -> tzinfo | None: ...
gettz: _GetTZ