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
Convert union of types to type of union in unions_internal (#2708)
Summary:
Pull Request resolved: #2708
The spec says that `type` distributes over unions: https://typing.python.org/en/latest/spec/special-types.html#type, but we weren't always respecting this. Fixed by standardizing how we represent a union of types/type of union. I also fixed up a few places where we weren't handling `type[Union[...]]` correctly, which is a pre-existing issue that is more obvious now that we're standardizing to that form.
Differential Revision: D95638889
0 commit comments