Skip to content

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

Open
lockenkop wants to merge 4 commits intorichibrics:mainfrom
lockenkop:machos_check_before_import
Open

only import mac dependencies if OsD.IsMacos()#115
lockenkop wants to merge 4 commits intorichibrics:mainfrom
lockenkop:machos_check_before_import

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