From 1b4918e5b152f4f467895df32cf700c0530f3d6b Mon Sep 17 00:00:00 2001 From: Liudmila Molkova Date: Mon, 11 Mar 2024 13:28:16 -0700 Subject: [PATCH] lint --- .../opentelemetry/semconv/templating/markdown/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py b/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py index 47bc704b..360aa29d 100644 --- a/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py +++ b/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py @@ -46,6 +46,7 @@ _OPENTELEMETRY_IO_SPEC_URL + "semconv/general/attribute-requirement-level/" ) + class RenderContext: def __init__(self): self.is_full = False @@ -109,7 +110,7 @@ def __init__( "\n|---|---|---|---|---|---|\n" ) self.table_headers_omitting_req_level = ( - f"| Attribute | Type | Description | Examples | Stability |" + "| Attribute | Type | Description | Examples | Stability |" "\n|---|---|---|---|---|\n" ) @@ -243,7 +244,7 @@ def to_markdown_metric_table( ] output.write( - f"| Name | Instrument Type | Unit (UCUM) | Description | Stability |\n" + "| Name | Instrument Type | Unit (UCUM) | Description | Stability |\n" "| -------- | --------------- | ----------- | -------------- | --------- |\n" ) @@ -536,7 +537,8 @@ def _render_group(self, semconv, parameters, output): output.write("") def _render_stability( - self, item: typing.Union[SemanticAttribute | BaseSemanticConvention | EnumMember] + self, + item: typing.Union[SemanticAttribute | BaseSemanticConvention | EnumMember], ): if item.deprecated: return self.options.deprecated_md_snippet(item.deprecated)