Skip to content

Commit 16e6f75

Browse files
00ll00picnixz
andauthored
Update Lib/_pyrepl/utils.py
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 64a443b commit 16e6f75

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/_pyrepl/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,7 @@ def is_soft_keyword_used(*tokens: TI | None) -> bool:
262262
TI(string="type"),
263263
TI(T.NAME, string=s)
264264
):
265-
if keyword.iskeyword(s):
266-
return False
267-
return True
265+
return not keyword.iskeyword(s):
268266
case _:
269267
return False
270268

0 commit comments

Comments
 (0)