Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python37\lib\typing.py", line 1001, in get_type_hints
value = _eval_type(value, globalns, localns)
File "C:\Python37\lib\typing.py", line 260, in _eval_type
return t._evaluate(globalns, localns)
File "C:\Python37\lib\typing.py", line 464, in _evaluate
eval(self.__forward_code__, globalns, localns),
File "<string>", line 1, in <module>
NameError: name 'List' is not defined
This is pretty much the same issue as #3635.
To reproduce, run the following:
This happens because of these type annotations:
pytest/src/_pytest/fixtures.py
Lines 303 to 311 in 7d4c4c6
Version info:
pytest 3.7.1andpytest 3.7.2.dev41+g7d4c4c66