From 81a6d245c205f06232febe2f02e9510b1a35c7b4 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Sun, 22 Mar 2026 14:30:19 -0400 Subject: [PATCH] [python-dateutil] Add missing `gettz` cache control methods (#15537) --- stubs/python-dateutil/dateutil/tz/tz.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stubs/python-dateutil/dateutil/tz/tz.pyi b/stubs/python-dateutil/dateutil/tz/tz.pyi index 19ce1c9dd..fe2eaf50e 100644 --- a/stubs/python-dateutil/dateutil/tz/tz.pyi +++ b/stubs/python-dateutil/dateutil/tz/tz.pyi @@ -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