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 f59b0ec commit b44bd55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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

0 comments on commit b44bd55

Please sign in to comment.