Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 9301234

Browse files
committed
Use old union syntax for <=3.9
1 parent a24706e commit 9301234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_attrload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class B:
275275
type: Literal['B']
276276
value: str
277277

278-
def conv(param: A | B) -> B:
278+
def conv(param: Union[A, B]) -> B:
279279
if isinstance(param, B):
280280
return param
281281
return B('B', str(param.value))

0 commit comments

Comments
 (0)