Set ToVarOperation.__qualname__ for better repr
This commit is contained in:
parent
4ad6c0f18c
commit
3433c0223d
@ -445,7 +445,12 @@ class Var(Generic[VAR_TYPE]):
|
|||||||
|
|
||||||
_default_var_type: ClassVar[GenericType] = default_type
|
_default_var_type: ClassVar[GenericType] = default_type
|
||||||
|
|
||||||
ToVarOperation.__name__ = f"To{cls.__name__.removesuffix('Var')}Operation"
|
new_to_var_operation_name = f"To{cls.__name__.removesuffix('Var')}Operation"
|
||||||
|
ToVarOperation.__qualname__ = (
|
||||||
|
ToVarOperation.__qualname__.removesuffix(ToVarOperation.__name__)
|
||||||
|
+ new_to_var_operation_name
|
||||||
|
)
|
||||||
|
ToVarOperation.__name__ = new_to_var_operation_name
|
||||||
|
|
||||||
_var_subclasses.append(VarSubclassEntry(cls, ToVarOperation, python_types))
|
_var_subclasses.append(VarSubclassEntry(cls, ToVarOperation, python_types))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user