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
I would like to use generic types such as list[int] instead of from typing import List; List[int].
I do know that the example in the documentation explicitly show that I need to import List from typing, but ever since python 3.9, it is preferred to directly use list as type annotation.
spock.exceptions._SpockInstantiationError: Spock class `BasicConfig` could not be instantiated -- attrs message: isinstance() argument 2 cannot be a parameterized generic
Environment (please complete the following information):
OS: Mac 10.13
Python version: 3.10
Spock version: 3.0.2
The text was updated successfully, but these errors were encountered:
Describe the bug
I would like to use generic types such as
list[int]
instead offrom typing import List; List[int]
.I do know that the example in the documentation explicitly show that I need to import
List
fromtyping
, but ever since python 3.9, it is preferred to directly uselist
as type annotation.To Reproduce
Create file
simple.py
Run the script,
I got:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: