Skip to content

Commit 6e00338

Browse files
committed
name can actually be none
1 parent 481d9a5 commit 6e00338

File tree

1 file changed

+3
-3
lines changed
  • stubs/python-dateutil/dateutil/tz

1 file changed

+3
-3
lines changed

stubs/python-dateutil/dateutil/tz/tz.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class tzutc(tzinfo):
3333
UTC: tzutc
3434

3535
class tzoffset(tzinfo):
36-
def __init__(self, name: str, offset: float | timedelta) -> None: ...
36+
def __init__(self, name: str | None, offset: float | timedelta) -> None: ...
3737
def utcoffset(self, dt: datetime | None) -> timedelta | None: ...
3838
def dst(self, dt: datetime | None) -> timedelta | None: ...
3939
def is_ambiguous(self, dt: datetime | None) -> bool: ...
@@ -44,7 +44,7 @@ class tzoffset(tzinfo):
4444
def __ne__(self, other: object) -> bool: ...
4545
__reduce__ = object.__reduce__
4646
@classmethod
47-
def instance(cls, name: str, offset: float | timedelta) -> tzoffset: ...
47+
def instance(cls, name: str | None, offset: float | timedelta) -> tzoffset: ...
4848

4949
class tzlocal(_tzinfo):
5050
def __init__(self) -> None: ...
@@ -108,7 +108,7 @@ class tzstr(tzrange):
108108
hasdst: bool
109109
def __init__(self, s: str, posix_offset: bool = False) -> None: ...
110110
@classmethod
111-
def instance(cls, name: str, offset: float | timedelta) -> tzoffset: ...
111+
def instance(cls, name: str | None, offset: float | timedelta) -> tzoffset: ...
112112

113113
@type_check_only
114114
class _ICalReader(Protocol):

0 commit comments

Comments
 (0)