Skip to content
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

Support added for Python3.10's Union Pipe operator #102

Closed
wants to merge 1 commit into from

Conversation

apurvakhatri
Copy link

Issue number of the reported bug or feature request: #80

Describe your changes
In order to resolve the issue - Support of pipe symbol for Union operation. Python3.10 uses base type as types.UnionTypes. So therefore added a case for that (If the base type is types.UnionTypes then perform validation). Hence supporting Union as X | Y.

Testing performed
Testing performed on Mac OS 13.3.1 and Python 3.10.7

Additional context

Copy link
Contributor

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add test.

@ZhangZhida
Copy link
Contributor

ZhangZhida commented Aug 12, 2023

Hi @apurvakhatri , I have permission issue pushing the code to your PR here, so I created a new PR #106 and retaining your commit history.

The new PR #106 fix the python version issue and add unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants