You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug:
The documentation for this library references decorators like @elasticapm.capture_span() or functions (e.g. elasticapm.instrument()) however they are not included in the __all__ variable. This causes type checkers (e.g. pyright/mypy) to complain because they expect explicit reexports via __all__. What's weird is that __all__ is defined, but the intended reexports (at least from looking at the documentation) are not added.
This makes it extremely confusing for someone that is new elasticapm, and the code becomes littered with# pyright: ignore comments or imports from various subpackages.
Describe the bug:
The documentation for this library references decorators like
@elasticapm.capture_span()
or functions (e.g.elasticapm.instrument()
) however they are not included in the__all__
variable. This causes type checkers (e.g. pyright/mypy) to complain because they expect explicit reexports via__all__
. What's weird is that__all__
is defined, but the intended reexports (at least from looking at the documentation) are not added.This makes it extremely confusing for someone that is new elasticapm, and the code becomes littered with
# pyright: ignore
comments or imports from various subpackages.To Reproduce
"capture_span" is not exported from module "elasticapm" (Pyright reportPrivateImportUsage)
Environment (please complete the following information)
The text was updated successfully, but these errors were encountered: