-
-
Notifications
You must be signed in to change notification settings - Fork 66
Replace SHGetFolderPathW with SHGetKnownFolderPath #380
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to fix the type checker at least 👍
This allow mypy to ignore this file on any os other then windows
for more information, see https://pre-commit.ci
@@ -12,6 +12,8 @@ | |||
if TYPE_CHECKING: | |||
from collections.abc import Callable | |||
|
|||
assert sys.platform == "win32" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just that mypy is kinda shit for file with platform specific code.
Anyways, it breaks the doc generation.
To be honest, i don't know how to fix those kinds of mypy error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you need to solve it differently.
Fix #348