From 6d6dcf07f6374cb4b758e7f5224276f019bd8907 Mon Sep 17 00:00:00 2001 From: Liudmila Molkova Date: Tue, 21 Nov 2023 12:40:35 -0800 Subject: [PATCH] lint --- .../semconv/templating/markdown/__init__.py | 11 +++++++---- 1 file changed, 7 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 1b124c0b..7ba33983 100644 --- a/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py +++ b/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py @@ -104,12 +104,15 @@ def __init__( f"{spec_root_url}/specification/common/attribute-requirement-level.md" ) req_level = f"[Requirement Level]({attribute_req_level_url})" - type = f"[Type]({spec_root_url}/specification/common/README.md#attribute)" + attribute_type = ( + f"[Type]({spec_root_url}/specification/common/README.md#attribute)" + ) - self.table_headers = f"| Attribute | {type} | Description | Examples | {req_level} |\n|---|---|---|---|---|\n" - self.table_headers_omitting_req_level = ( - f"| Attribute | {type} | Description | Examples |\n|---|---|---|---|\n" + self.table_headers = ( + f"| Attribute | {attribute_type} | Description | Examples | {req_level} |" + "\n|---|---|---|---|---|\n" ) + self.table_headers_omitting_req_level = f"| Attribute | {attribute_type} | Description | Examples |\n|---|---|---|---|\n" def to_markdown_attr( self,