Skip to content

Commit 1459adc

Browse files
authored
ZoneInfo.clear_cache can have Optional input (#8856)
1 parent 5d45e3b commit 1459adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/zoneinfo/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ZoneInfo(tzinfo):
1818
@classmethod
1919
def from_file(cls: type[Self], __fobj: _IOBytes, key: str | None = ...) -> Self: ...
2020
@classmethod
21-
def clear_cache(cls, *, only_keys: Iterable[str] = ...) -> None: ...
21+
def clear_cache(cls, *, only_keys: Iterable[str] | None = ...) -> None: ...
2222

2323
# Note: Both here and in clear_cache, the types allow the use of `str` where
2424
# a sequence of strings is required. This should be remedied if a solution

0 commit comments

Comments
 (0)