Skip to content

Commit 636dd5c

Browse files
committed
3.9 fix
1 parent ee0a6be commit 636dd5c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration_tests/test_formatters.py

Lines changed: 4 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, Union
3+
from typing import List
44

55
from pydantic import BaseModel
66

@@ -78,5 +78,7 @@ 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"], Union[int, float])
81+
assert isinstance(out["foo"]["whole"], int) or isinstance(
82+
out["foo"]["whole"], float
83+
)
8284
assert isinstance(out["foo"]["frac"], float)

0 commit comments

Comments
 (0)