Skip to content

Commit e303e64

Browse files
committed
Use isinstance
1 parent c96884f commit e303e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def tweak_patchlevel(tag: Tag, done: bool = False) -> None:
295295
296296
/* Version as a string */
297297
#define PY_VERSION \t\"{tag.text}{plus}"'''.strip()
298-
assert tag.level is str
298+
assert isinstance(tag.level, str)
299299
level_def = {
300300
"a": "PY_RELEASE_LEVEL_ALPHA",
301301
"b": "PY_RELEASE_LEVEL_BETA",

0 commit comments

Comments
 (0)