Commit afc488d
authored
Currently, using the decorator form of `trace` like this (as mentioned in the docs[1]):
```
import sentry_sdk
@sentry_sdk.trace
def do_stuff():
```
causes mypy to throw a `Module "sentry_sdk" does not explicitly export attribute "trace" [attr-defined]` error. This adds `trace` to the top-level `__init__.py`'s `__all__` so mypy sees it as being officially exported and stops throwing the error.
[1] https://docs.sentry.io/platforms/python/performance/instrumentation/custom-instrumentation/#using-a-decorator-1
1 parent 7c74ed3 commit afc488d
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments