Skip to content

Problem with Python 3.9.0a5 #8872

Closed
Closed
@ok2

Description

@ok2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions