Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Dec 11, 2023
1 parent 82e2a42 commit 870178f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def parse_stability_deprecated(stability, deprecated, position_data):
if "stability" in position_data
else position_data["deprecated"],
)
return stability or StabilityLevel.EXPERIMENTAL, deprecated
return stability, deprecated

@staticmethod
def check_stability(stability_value, position):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def is_deprecated(obj: typing.Union[SemanticAttribute, BaseSemanticConvention])
def is_experimental(
obj: typing.Union[SemanticAttribute, BaseSemanticConvention]
) -> bool:
return obj.stability == StabilityLevel.EXPERIMENTAL
return obj.stability is None or obj.stability == StabilityLevel.EXPERIMENTAL


def is_definition(attribute: SemanticAttribute) -> bool:
Expand Down

0 comments on commit 870178f

Please sign in to comment.