Skip to content

Conversation

@Adirelle
Copy link

On non-windows platform, using mypy src/ or pre-commit run -a yields error on findpython.pep514tools because of the missing libraries winreg (or _winreg for python 2.7).

This PR fixes this parsing errors by checking sys.platform and sys.version_info in findpython.pep514tools either to import the right module or defines placeholders. mypy detects these tests and acts accordingly, cf. https://mypy.readthedocs.io/en/stable/common_issues.html#python-version-and-system-platform-checks.

@Adirelle
Copy link
Author

Adirelle commented Aug 7, 2023

https://github.com/frostming/findpython/actions/runs/5577259406/job/15673230632?pr=23#step:5:136

src/findpython/providers/base.py:32: error: Name "t.Self" is not defined

I have already seen this error but I cannot remember how to fix it.

@frostming frostming force-pushed the main branch 2 times, most recently from 3d813d0 to 7cc1e55 Compare March 25, 2024 09:58
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