Skip to content

Commit ee0a6be

Browse files
committed
3.9 type fix
1 parent 5d4220b commit ee0a6be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration_tests/test_formatters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import importlib
22
import pytest
3-
from typing import List
3+
from typing import List, Union
44

55
from pydantic import BaseModel
66

@@ -78,5 +78,5 @@ class Tricky(BaseModel):
7878
assert isinstance(out, dict)
7979
assert "foo" in out
8080
assert isinstance(out["foo"], dict)
81-
assert isinstance(out["foo"]["whole"], int | float)
81+
assert isinstance(out["foo"]["whole"], Union[int, float])
8282
assert isinstance(out["foo"]["frac"], float)

0 commit comments

Comments
 (0)