Skip to content

Commit fe5fc8a

Browse files
author
Guido van Rossum
committed
Better test that we've got a recent 3.8.0-dev
1 parent 42ae5be commit fe5fc8a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mypy/fastparse.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@
4141
try:
4242
# Check if we can use the stdlib ast module instead of typed_ast.
4343
if sys.version_info >= (3, 8):
44-
assert (sys.version_info > (3, 8, 0, 'alpha', 2)
45-
or sys.version.startswith('3.8.0a2+')
46-
), "Python 3.8.0a1/a2 are not supported"
4744
import ast as ast3
45+
assert 'kind' in ast3.Constant._fields, "This 3.8.0 alpha is too old"
4846
from ast import (
4947
AST,
5048
Call,

0 commit comments

Comments
 (0)