From 01b82d1591e58edcad31cab4aa0ef70d7a4cd83c Mon Sep 17 00:00:00 2001 From: Liudmila Molkova Date: Tue, 27 Feb 2024 17:46:58 -0800 Subject: [PATCH] lint --- .../semconv/templating/markdown/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py b/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py index f4e1c1f8..a25053c5 100644 --- a/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py +++ b/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py @@ -39,12 +39,14 @@ from opentelemetry.semconv.model.utils import ID_RE from opentelemetry.semconv.templating.markdown.options import MarkdownOptions +_OPENTELEMETRY_IO_SPEC_URL = "https://opentelemetry.io/docs/specs/" _REQUIREMENT_LEVEL_URL = ( - "https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/" + _OPENTELEMETRY_IO_SPEC_URL + "semconv/general/attribute-requirement-level/" ) _SEMANTIC_CONVENTIONS_STABILITY_URL = ( - "https://opentelemetry.io/docs/specs/otel/versioning-and-stability/#semantic-conventions-stability" + _OPENTELEMETRY_IO_SPEC_URL + + "otel/versioning-and-stability/#semantic-conventions-stability" ) @@ -544,9 +546,9 @@ def _render_stability( ): if item.deprecated: return self.options.deprecated_md_snippet(item.deprecated) - elif item.stability == StabilityLevel.STABLE: + if item.stability == StabilityLevel.STABLE: return self.options.stable_md_snippet() - elif item.stability == StabilityLevel.EXPERIMENTAL: + if item.stability == StabilityLevel.EXPERIMENTAL: return self.options.experimental_md_snippet() raise ValueError(f"Unknown stability level {item.stability}")