Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(api): Improve
sentry_sdk.trace
type hints (#2633)
Type hints for sentry_sdk.trace decorator function now indicate that the decorator returns a function with the same signature as it was called with. Previously, the type hints indicated that the decorator could return Any, which caused users to lose type hints for decorated functions. * Improve `sentry_sdk.trace` type hints * Add overloads for None case * Fix typing when `trace` called with `None` Fixes GH-2460
- Loading branch information