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
The idea in proposing Intersection is to create type hints that support type transformations, since it is not possible to support this behavior without using inheritance.
Furthermore, it becomes much more complicated when trying to use it in overloads.
In this case, I assume that this tool typing.Intersection exists. It should work similar to typing.Union, but the actual type meets the arguments of this as protocols
This implementation would help the more efficient development of dynamic classes by linking with typevar so as not to lose a lot of information during its creation.
The text was updated successfully, but these errors were encountered:
The idea in proposing
Intersection
is to create type hints that support type transformations, since it is not possible to support this behavior without using inheritance.Furthermore, it becomes much more complicated when trying to use it in overloads.
In this case, I assume that this tool
typing.Intersection
exists. It should work similar totyping.Union
, but the actual type meets the arguments of this as protocolsThis implementation would help the more efficient development of dynamic classes by linking with typevar so as not to lose a lot of information during its creation.
The text was updated successfully, but these errors were encountered: