fix: Don't dynamically compute __all__, to help mypy understand it · bluetech/sentry-python@a4f8a1c · GitHub
Skip to content

Commit a4f8a1c

Browse files
committed
fix: Don't dynamically compute __all__, to help mypy understand it
sentry_sdk/__init__.py imports * from sentry_sdk.api. Mypy can't understand the `@public` trick in sentry_sdk.api, so it thinks that sentry_sdk.api's __all__ is [], so given code like this import sentry_sdk sentry_sdk.capture_message("Something went wrong!") mypy complains Help it by not using the `@public` trick. Fixes getsentry#386.
1 parent 8b3de2c commit a4f8a1c

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

sentry_sdk/api.py

Lines changed: 11 additions & 7 deletions

0 commit comments

Comments
 (0)