You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that types are a subset of the types passed to AnyOf. When using abstract base classes, this would allow the user to define which types are allowed for inherited classes.
Example:
A similar feature has been proposed before, and I agree that it could be useful sometimes. It's not very likely to be supported (soon), since a full implementation would be a lot of work.
Closing as essentially a duplicate of python/typing#566. Feel free to continue the discussion there, as your use case is a little different from the existing examples.
Check that types are a subset of the types passed to AnyOf. When using abstract base classes, this would allow the user to define which types are allowed for inherited classes.
Example:
The text was updated successfully, but these errors were encountered: