mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
ZoneInfo.clear_cache can have Optional input (#8856)
This commit is contained in:
@@ -18,7 +18,7 @@ class ZoneInfo(tzinfo):
|
||||
@classmethod
|
||||
def from_file(cls: type[Self], __fobj: _IOBytes, key: str | None = ...) -> Self: ...
|
||||
@classmethod
|
||||
def clear_cache(cls, *, only_keys: Iterable[str] = ...) -> None: ...
|
||||
def clear_cache(cls, *, only_keys: Iterable[str] | None = ...) -> None: ...
|
||||
|
||||
# Note: Both here and in clear_cache, the types allow the use of `str` where
|
||||
# a sequence of strings is required. This should be remedied if a solution
|
||||
|
||||
Reference in New Issue
Block a user