You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the inbuilt type notation introduced in python 3.9 (e.g. list[str]) is used, the pre-commit/action@v2.0.2 fails the mypy build check. This is despite it passing the pre-commit hook locally.
To Reproduce
Steps to reproduce the behavior:
Add a type hint which indexes a collection type (e.g. list[str] or tuple[int]) to existing code
Commit this code
If it passes the pre-commit hooks push the code
The GitHub actions build check should fail with a message similar to error: "list" is not subscriptable, use "typing.List" instead
Expected behavior
The mypy build check should pass as we have set our supported python to be >=3.9.
Desktop (please complete the following information):
OS: macOS
Version 12.5.1
The text was updated successfully, but these errors were encountered:
Describe the bug
When the inbuilt type notation introduced in python 3.9 (e.g.
list[str]
) is used, thepre-commit/action@v2.0.2
fails the mypy build check. This is despite it passing the pre-commit hook locally.To Reproduce
Steps to reproduce the behavior:
list[str]
ortuple[int]
) to existing codeerror: "list" is not subscriptable, use "typing.List" instead
Expected behavior
The mypy build check should pass as we have set our supported python to be >=3.9.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: