Skip to content

Commit ec5d35f

Browse files
committed
Py 3.8/9 union fix.
1 parent 92d2f8f commit ec5d35f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_source_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ class Bird(BaseModel):
459459
tweet: str
460460

461461
class Car(BaseSettings, cli_parse_args=True):
462-
driver: Cat | Dog | Bird = Cat(meow='purr')
462+
driver: Union[Cat, Dog, Bird] = Cat(meow='purr')
463463

464464
with monkeypatch.context() as m:
465465
m.setattr(sys, 'argv', ['example.py', '--help'])

0 commit comments

Comments
 (0)