10BC0
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da4294 commit 60aa70fCopy full SHA for 60aa70f
tests/test_typing.py
@@ -126,10 +126,10 @@ def test_eval_type_backport_not_installed():
126
with pytest.raises(TypeError) as exc_info:
127
128
class _Model(BaseModel):
129
- foo: 'list[int]'
+ foo: 'int | str'
130
131
assert str(exc_info.value) == (
132
- "You have a type annotation 'list[int]' which makes use of newer typing "
+ "You have a type annotation 'int | str' which makes use of newer typing "
133
'features than are supported in your version of Python. To handle this error, '
134
'you should either remove the use of new syntax or install the '
135
'`eval_type_backport` package.'
0 commit comments