Skip to content

Fix mypy hinting of toplevel sentry_sdk module#892

Merged
untitaker merged 1 commit into
getsentry:masterfrom
intgr:fix-mypy-hinting-of-toplevel-module
Oct 27, 2020
Merged

Fix mypy hinting of toplevel sentry_sdk module#892
untitaker merged 1 commit into
getsentry:masterfrom
intgr:fix-mypy-hinting-of-toplevel-module

Conversation

@intgr
Copy link
Copy Markdown
Contributor

@intgr intgr commented Oct 26, 2020

Mypy does not support runtime-calculated __all__, so duplicate symbols
from sentry_sdk.api.__all__ to top-level __init__.py.

Fixes #375.

Tested with mypy 0.790.

@intgr intgr mentioned this pull request Oct 26, 2020
Comment thread sentry_sdk/__init__.pyi Outdated
Mypy does not support runtime-calculated __all__, so duplicate symbols
from sentry_sdk.api.__all__ to top-level __init__.py.

Tested with mypy 0.790.
@intgr intgr requested a review from untitaker October 27, 2020 14:16
@intgr
Copy link
Copy Markdown
Contributor Author

intgr commented Oct 27, 2020

Updated per comments.

@untitaker untitaker merged commit e6a2c91 into getsentry:master Oct 27, 2020
@untitaker
Copy link
Copy Markdown
Member

Thanks!

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.

Add PEP 561 support

2 participants