From 882376ab6223753597d6c71c36946099ad0b805b 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 | 12 +++++++++--- 1 file changed, 9 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 1b124c0b..a5c7d210 100644 --- a/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py +++ b/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py @@ -104,11 +104,17 @@ 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 = ( + f"| Attribute | {attribute_type} | Description | Examples | {req_level} |" + "\n|---|---|---|---|---|\n" + ) self.table_headers_omitting_req_level = ( - f"| Attribute | {type} | Description | Examples |\n|---|---|---|---|\n" + f"| Attribute | {attribute_type} | Description | Examples |" + "\n|---|---|---|---|\n" ) def to_markdown_attr(