Skip to content

Commit 4ddff4e

Browse files
authored
chore: Fix variable name in literal class implementation (#237)
1 parent 7650e4a commit 4ddff4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/astx/src/astx/literals/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def __init__(self, *args, **kwargs) -> None: # type: ignore
3333

3434
def __str__(self) -> str:
3535
"""Return a string that represents the object."""
36-
klass = self.__class__.__name__
37-
return f"{klass}({self.value})"
36+
class_name = self.__class__.__name__
37+
return f"{class_name}({self.value})"
3838

3939
def get_struct(self, simplified: bool = False) -> ReprStruct:
4040
"""Return the AST representation for the object."""

0 commit comments

Comments
 (0)