Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stubgen: preserve PEP 604 Unions in generated pyi files (#14601)
When a PEP 604 Union exists in the runtime, stubgen was generating a `Union[...]` syntax without importing `Union` from `typing`. With this change, stubgen preserves the ` | `-unions in the output. Fixes #12929 Closes #13428 Ref #12920
- Loading branch information