Replies: 1 comment
-
Try using the TypeGuard feature, particularly the "more than one argument" variant described in the Specification section of the linked PEP. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
my code
the ata_ret type is
Union[ATAReturn, FixedATAReturn, None]
i got a error info
Item "None" of "Union[ATAReturn, FixedATAReturn, None]" has no attribute "status"mypy(error)
how can i fix it?
Beta Was this translation helpful? Give feedback.
All reactions