Skip to content

Commit d4f5ee6

Browse files
authored
Fix et_logger by remove the self args in the et_logger decorator (#13144)
Summary: Had the similar change in D67420902 and now hits the same error in oss. Port the changes over for the fix Differential Revision: D79665973
1 parent 5797608 commit d4f5ee6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exir/program/_program.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@
109109
# Define a stub decorator that does nothing
110110
def et_logger(api_name: str) -> Callable[[Any], Any]:
111111
def decorator(func: Callable[..., Any]) -> Callable[..., Any]:
112-
def wrapper(self: Any, *args: Any, **kwargs: Any) -> Any:
113-
return func(self, *args, **kwargs)
112+
def wrapper(*args: Any, **kwargs: Any) -> Any:
113+
return func(*args, **kwargs)
114114

115115
return wrapper
116116

0 commit comments

Comments
 (0)