Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Fix bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauko Quiroga committed Oct 17, 2021
1 parent a8f76e3 commit 1d1416b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pysemver/domain/_to_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ def to_value(instance) -> str:
"""


@to_value.instance(ast.expr)
def _from_ast_expr(instance: ast.epxr) -> str:
return str(instance)


@to_value.instance(ast.slice)
def _from_ast_slice(instance: ast.slice) -> str:
return str(instance)


@to_value.instance(ast.Attribute)
def _from_ast_attribute(instance: ast.Attribute) -> str:
return to_value(instance.attr)
Expand Down

0 comments on commit 1d1416b

Please sign in to comment.