Skip to content

Commit bc43f6e

Browse files
authored
bpo-41065: Use zip-strict in zoneinfo (GH-21031)
1 parent 30a8933 commit bc43f6e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/zoneinfo/_common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ class _TZifHeader:
136136
]
137137

138138
def __init__(self, *args):
139-
assert len(self.__slots__) == len(args)
140-
for attr, val in zip(self.__slots__, args):
139+
for attr, val in zip(self.__slots__, args, strict=True):
141140
setattr(self, attr, val)
142141

143142
@classmethod

0 commit comments

Comments
 (0)