Skip to content

Commit 9ede05f

Browse files
docs: use __all__ for AnyValue re-export to satisfy both pylint and ruff
1 parent 4298f04 commit 9ede05f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • opentelemetry-api/src/opentelemetry/attributes

opentelemetry-api/src/opentelemetry/attributes/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
# Re-exported so the "AnyValue" forward reference in
1313
# util.types._ExtendedAttributes resolves against this module's globals when
1414
# sphinx_autodoc_typehints introspects BoundedAttributes.
15-
from opentelemetry.util.types import AnyValue as AnyValue
15+
from opentelemetry.util.types import AnyValue
16+
17+
__all__ = ["AnyValue", "BoundedAttributes"]
1618

1719
# bytes are accepted as a user supplied value for attributes but
1820
# decoded to strings internally.

0 commit comments

Comments
 (0)