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

only import mac dependencies if OsD.IsMacos() #115

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lockenkop
Copy link
Contributor

@lockenkop lockenkop commented Jun 30, 2024

Someone before me stumbled upon this MacOS dependecy import that always raises an exception on every other OS. The MyPy ignores don’t work in my dev env (vscode, debugpy which uses #@IgnoreException).

Sadly i did not find a way to configure debugpys ignore exception tags
https://github.com/microsoft/debugpy/blob/514e54fa2b87951e571ac5b6596c461f6644432a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py#L51
If this change is breaking something else, i’d be happy to just add #@IgnoreException

I'll test this on windows tomorrow, i can't test it on macos myself.

@lockenkop lockenkop marked this pull request as draft June 30, 2024 18:06
@lockenkop lockenkop marked this pull request as ready for review July 27, 2024 10:04
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