mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 04:25:50 +08:00
[python-dateutil] Add missing gettz cache control methods (#15537)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user