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

feat: use Union instead of | for older Python versions #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SantiiRepair
Copy link

Today I had a long incident with paddleocr because recent versions no longer support cpu that are not compatible with avx instructions so I had to use Python 3.8.10 to solve that since for that version there are wheels that support noavx, the project needed the nopecha package but I saw that internally it used | instead of Union for typing so I said to myself "wow just because of this a lot of people can't use nopecha with cp38", typing using | was introduced for Python versions 3.10 and higher as seen here in PEP 604

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.

1 participant