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

refactor: remove type union operator #53

Merged
merged 2 commits into from
Jan 16, 2023
Merged

refactor: remove type union operator #53

merged 2 commits into from
Jan 16, 2023

Conversation

filipporomani
Copy link
Contributor

I propose this removal to support python versions < 3.10, as (type | None) can't be used in older python versions.

I propose this removal to support python versions < 3.10, as (type | None) can't be used in older python versions.
@filipporomani
Copy link
Contributor Author

I removed this to make it easier, I'm not sure if it's worth it or not.

Copy link
Contributor

@Kalebu Kalebu left a comment

Choose a reason for hiding this comment

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

How about using ?

from typing import Union

def function_name(self, param) -> Union[str, None]:
    pass 

@filipporomani
Copy link
Contributor Author

Done! I replace it, new commit added!

@Kalebu
Copy link
Contributor

Kalebu commented Jan 16, 2023

Done! I replace it, new commit added!

Thank you @filipporomani Merging this into main

@Kalebu Kalebu merged commit 592defa into Neurotech-HQ:main Jan 16, 2023
@filipporomani
Copy link
Contributor Author

Thank you!

@filipporomani filipporomani deleted the patch-2 branch March 19, 2023 11:01
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.

2 participants