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

MyPy flagged linting issues #19

Open
ModeSevenIndustrialSolutions opened this issue Jun 3, 2024 · 0 comments
Open

MyPy flagged linting issues #19

ModeSevenIndustrialSolutions opened this issue Jun 3, 2024 · 0 comments

Comments

@ModeSevenIndustrialSolutions
Copy link
Contributor

Do we need to change the flagged code below, or bump the Python version requirement?

i.e. remove the following from pyproject.toml

"Programming Language :: Python :: 3.9",

This is the current error:

`mypy.....................................................................Failed

  • hook id: mypy
  • duration: 1.59s
  • exit code: 1

osc_extraction_utils/settings.py:37: error: X | Y syntax for unions requires Python 3.10 [syntax]
osc_extraction_utils/settings.py:73: error: X | Y syntax for unions requires Python 3.10 [syntax]
osc_extraction_utils/settings.py:90: error: X | Y syntax for unions requires Python 3.10 [syntax]
osc_extraction_utils/settings.py:98: error: X | Y syntax for unions requires Python 3.10 [syntax]
osc_extraction_utils/settings.py:111: error: X | Y syntax for unions requires Python 3.10 [syntax]
osc_extraction_utils/settings.py:142: error: X | Y syntax for unions requires Python 3.10 [syntax]
osc_extraction_utils/settings.py:160: error: X | Y syntax for unions requires Python 3.10 [syntax]
osc_extraction_utils/settings.py:212: error: X | Y syntax for unions requires Python 3.10 [syntax]
osc_extraction_utils/settings.py:215: error: X | Y syntax for unions requires Python 3.10 [syntax]
osc_extraction_utils/settings.py:216: error: X | Y syntax for unions requires Python 3.10 [syntax]
osc_extraction_utils/paths.py:143: error: X | Y syntax for unions requires Python 3.10 [syntax]
Found 11 errors in 2 files (checked 1 source file)
`

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

No branches or pull requests

1 participant