Skip to content

Commit 7b3ec36

Browse files
committed
nit fixes
1 parent a6e0c35 commit 7b3ec36

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

tripy/nvtripy/frontend/ops/_registry.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#
1717

1818
from typing import Any, Callable
19-
from functools import wraps
2019

2120
# We use the tensor method registry to define methods on the `Tensor` class out of line.
2221
# This lets the method live alongside the trace operation and makes it a bit more modular

tripy/nvtripy/utils/ast.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def get_arg_candidate_column_offsets(
123123
arg_node = node.keywords[index - num_positional]
124124
else:
125125
# Detect method calls by examining AST structure
126+
# For methods, the `self` argument is omitted from ast.Call.args
126127
is_method_call = isinstance(node.func, ast.Attribute)
127128
if is_method_call:
128129
index -= 1

0 commit comments

Comments
 (0)