Work around a pyrefly bug
This commit is contained in:
parent
e2ec0d9069
commit
711b85ff55
1 changed files with 7 additions and 0 deletions
|
|
@ -413,6 +413,13 @@ class WWVBMinute(_WWVBMinute):
|
||||||
ly = isly(year)
|
ly = isly(year)
|
||||||
return super().__new__(cls, year, days, hour, minute, dst, ut1, ls, ly)
|
return super().__new__(cls, year, days, hour, minute, dst, ut1, ls, ly)
|
||||||
|
|
||||||
|
def __init__(self, *args: Any, **kw: Any) -> None:
|
||||||
|
"""Do-nothing function.
|
||||||
|
|
||||||
|
Instance initialization is performed in __new__. This implementation of __init__
|
||||||
|
works around a pyrefly bug.
|
||||||
|
"""
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def full_year(cls, year: int) -> int:
|
def full_year(cls, year: int) -> int:
|
||||||
"""Convert a (possibly two-digit) year to a full year.
|
"""Convert a (possibly two-digit) year to a full year.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue