general: fix mypy errors after mypy and pytz stubs updates
see 968fd6d01d/stubs/pytz/pytz/tzinfo.pyi (L6)
it says all concrete instances should not be None
This commit is contained in:
parent
9578b13fca
commit
dd928964e6
4 changed files with 6 additions and 5 deletions
|
@ -67,7 +67,8 @@ def _iter_local_dates(start=0, stop=None) -> Iterator[DayWithZone]:
|
|||
warnings.append("local time goes backwards {ldt} ({tz}) < {pdt}")
|
||||
continue
|
||||
pdt = ldt
|
||||
yield DayWithZone(day=ndate, zone=tz.zone)
|
||||
z = tz.zone; assert z is not None
|
||||
yield DayWithZone(day=ndate, zone=z)
|
||||
|
||||
|
||||
def most_common(l):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue