Skip to content

Conversation

moi15moi
Copy link

@moi15moi moi15moi commented Sep 7, 2025

Fix #348

@gaborbernat
Copy link
Member

gaborbernat commented Sep 8, 2025

@moi15moi you might want to take a look at the now abandoned previous attempt #350; feedback applied there will be relavant here too.

Copy link
Member

@gaborbernat gaborbernat left a 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 👍

moi15moi and others added 2 commits September 8, 2025 17:14
This allow mypy to ignore this file on any os other then windows
@@ -12,6 +12,8 @@
if TYPE_CHECKING:
from collections.abc import Callable

assert sys.platform == "win32"
Copy link
Member

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.

Copy link
Author

@moi15moi moi15moi Sep 8, 2025

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.

Copy link
Member

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.

@gaborbernat gaborbernat marked this pull request as draft September 8, 2025 21:43
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.

SHGetFolderPathW is deprecated
2 participants