10BC0 use a type annotation that's unsupported in 3.9, not just 3.8 · pydantic/pydantic@60aa70f · GitHub
[go: up one dir, main page]

Skip to content

Commit 60aa70f

Browse files
committed
use a type annotation that's unsupported in 3.9, not just 3.8
1 parent 8da4294 commit 60aa70f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ def test_eval_type_backport_not_installed():
126126
with pytest.raises(TypeError) as exc_info:
127127

128128
class _Model(BaseModel):
129-
foo: 'list[int]'
129+
foo: 'int | str'
130130

131131
assert str(exc_info.value) == (
132-
"You have a type annotation 'list[int]' which makes use of newer typing "
132+
"You have a type annotation 'int | str' which makes use of newer typing "
133133
'features than are supported in your version of Python. To handle this error, '
134134
'you should either remove the use of new syntax or install the '
135135
'`eval_type_backport` package.'

0 commit comments

Comments
 (0)
0