Commit 3d543ed
committed
fixes handling of union types
In the dataclasses conversion code type that is a member of a union
was not properly checked for if it was a member and so there would
always be an error.
For instance `FlyteFile.path` is `Union[str,Pathlike]` and so `str !=
Union[str,Pathlike]`.
This patch adds support for checking that a type is part of a union
and a satisfactory type.
Signed-off-by: Samuel Lotz <[email protected]>1 parent 1a25939 commit 3d543ed
1 file changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
565 | 566 | | |
566 | 567 | | |
567 | 568 | | |
568 | | - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
569 | 576 | | |
570 | 577 | | |
571 | 578 | | |
| |||
1836 | 1843 | | |
1837 | 1844 | | |
1838 | 1845 | | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
1839 | 1854 | | |
1840 | 1855 | | |
1841 | 1856 | | |
| |||
0 commit comments