-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Refactor: replace make_simplified_union with UnionType.make_union (#8624) #19026
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Okay, was this generated by some LLM? That's not the difference between |
This commit fixes code formatting issues automatically using `ruff --fix` and `black .` as recommended by the Mypy maintainers.
for more information, see https://pre-commit.ci
|
I'm closing this PR after realizing that UnionType.make_union is not a safe drop-in replacement for make_simplified_union. |
This PR replaces calls to
make_simplified_unionwith the more modernUnionType.make_unionacross several files, as part of the cleanup and modernization discussed in issue #8624.This change does not modify behavior but standardizes the way union types are created in the type system, improving code consistency.
Affected files: