Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Dec 7, 2023
1 parent bd6b27b commit f59b0ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,15 @@ def is_template_type(attr_type: str):
attr_type.startswith(TEMPLATE_PREFIX)
and attr_type.endswith(TEMPLATE_SUFFIX)
and AttributeType.is_simple_type(
attr_type[len(TEMPLATE_PREFIX) : len(attr_type) - len(TEMPLATE_SUFFIX)]
attr_type[len(TEMPLATE_PREFIX): len(attr_type) - len(TEMPLATE_SUFFIX)]
)
)

@staticmethod
def get_instantiated_type(attr_type: str):
if AttributeType.is_template_type(attr_type):
return attr_type[
len(TEMPLATE_PREFIX) : len(attr_type) - len(TEMPLATE_SUFFIX)
len(TEMPLATE_PREFIX): len(attr_type) - len(TEMPLATE_SUFFIX)
]
if AttributeType.is_simple_type(attr_type):
return attr_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def _render_single_file(self, content: str, md: str, output: io.StringIO):
# We should not fail here since we would detect this earlier
# But better be safe than sorry
raise ValueError(f"Semantic Convention ID {semconv_id} not found")
output.write(content[last_match : match.start(0)])
output.write(content[last_match: match.start(0)])
self._render_group(semconv, parameters, output)
end_match = self.p_end.search(content, last_match)
if not end_match:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from dataclasses import dataclass, field
from typing import List

from opentelemetry.semconv.model.semantic_attribute import StabilityLevel


@dataclass()
class MarkdownOptions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ groups:
requirement_level: required
stability: will_fail
brief: ""

0 comments on commit f59b0ec

Please sign in to comment.