Skip to content

Commit 4905fa0

Browse files
committed
Ignore versions 3.14.0-alpha for usage of new tokens
It looks like the corresponding symbols have been introduced with Python 3.14.0-beta which leads to an exception when version 3.14.0-alpha is used.
1 parent c1d4937 commit 4905fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycodestyle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
else: # pragma: <3.12 cover
159159
FSTRING_START = FSTRING_MIDDLE = FSTRING_END = -1
160160

161-
if sys.version_info >= (3, 14): # pragma: >=3.14 cover
161+
if sys.version_info >= (3, 14, 0, 'beta'): # pragma: >=3.14 cover
162162
TSTRING_START = tokenize.TSTRING_START
163163
TSTRING_MIDDLE = tokenize.TSTRING_MIDDLE
164164
TSTRING_END = tokenize.TSTRING_END

0 commit comments

Comments
 (0)