Skip to content

Commit

Permalink
style: fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
pwwang committed Oct 9, 2024
1 parent 91cb4d6 commit ef2179c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions varname/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def _(node: Union[ast.Attribute, ast.Subscript]) -> ast.Call:
keywords=[],
)
else:
return ast.Call(
return ast.Call( # type: ignore
func=ast.Attribute(
value=node.value,
attr=(
Expand Down Expand Up @@ -639,7 +639,7 @@ def _(node: ast.Compare) -> ast.Call:
keywords=[],
)
else:
return ast.Call(
return ast.Call( # type: ignore
func=ast.Attribute(
value=node.left,
attr=CMP2MAGIC[type(node.ops[0])],
Expand Down Expand Up @@ -673,7 +673,7 @@ def _(node: ast.BinOp) -> ast.Call:
keywords=[],
)
else:
return ast.Call(
return ast.Call( # type: ignore
func=ast.Attribute(
value=node.left,
attr=OP2MAGIC[type(node.op)],
Expand Down

0 comments on commit ef2179c

Please sign in to comment.