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

CU-86dtb6tu5 - Change the usage of typing.Union and typing.Optional to use the native | operator and update tests accordingly #1248

Merged
merged 2 commits into from
May 7, 2024

Conversation

luc10921
Copy link
Collaborator

@luc10921 luc10921 commented May 6, 2024

Summary or solution description
It's now possible to use | instead of Union or Optional from typing

How to Reproduce

@public
def main(a: int | None) -> bool:
if a is not None:
return some_function(a)
else:
return False

Platform:

  • OS: Windows 11 x64
  • Python version: Python 3.11

…l` to use the native `|` operator and update tests accordingly
@luc10921 luc10921 requested a review from meevee98 May 6, 2024 19:01
@luc10921 luc10921 self-assigned this May 6, 2024
@coveralls
Copy link
Collaborator

coveralls commented May 6, 2024

Coverage Status

coverage: 91.779% (+0.006%) from 91.773%
when pulling 2909845 on CU-86dtb6tu5
into 44bc501 on development.

…l` to use the native `|` operator and update tests accordingly
@meevee98 meevee98 merged commit 084776f into development May 7, 2024
4 checks passed
@meevee98 meevee98 deleted the CU-86dtb6tu5 branch May 7, 2024 20:00
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.

None yet

4 participants