Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Python 3.9.0a5 #8872

Closed
ok2 opened this issue May 22, 2020 · 1 comment
Closed

Problem with Python 3.9.0a5 #8872

ok2 opened this issue May 22, 2020 · 1 comment

Comments

@ok2
Copy link

ok2 commented May 22, 2020

I have tried to test my application on Python 3.9.0 alpha 5, may be it is just a bug of the unstable python, but I get strange error, here small program to reproduce:

from typing import List
def a1(b: List[int]) -> int:
    return b[0]

Starting that:

(py39) $ mypy --show-error-context --pretty --strict test.py
test.py:2: error: syntax error in type comment
    def a1(b: List[int]) -> int:
              ^
Found 1 error in 1 file (checked 1 source file)

On python 3.8 environment it works without any problems.

@hauntsaninja
Copy link
Collaborator

This is a known issue that is fixed on mypy master (#8627)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants