Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Mar 11, 2024
1 parent 9285e0e commit 1b4918e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
_OPENTELEMETRY_IO_SPEC_URL + "semconv/general/attribute-requirement-level/"
)


class RenderContext:
def __init__(self):
self.is_full = False
Expand Down Expand Up @@ -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"
)

Expand Down Expand Up @@ -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"
)

Expand Down Expand Up @@ -536,7 +537,8 @@ def _render_group(self, semconv, parameters, output):
output.write("<!-- endsemconv -->")

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)
Expand Down

0 comments on commit 1b4918e

Please sign in to comment.