Skip to content

Commit

Permalink
fix: undefined self (#10302)
Browse files Browse the repository at this point in the history
fix: undefined self
method must have a first formal parameter

modified:   tools/functional/generator.py
  • Loading branch information
digger-yu authored Jul 13, 2023
1 parent 11d6547 commit e9940c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/functional/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def __init__(self, fmt):
self._max_keyword_args_count = count

@property
def num_of_args():
def num_of_args(self):
return len(self._args)

def to_string(self, to_cpp=False, drop_name=False):
Expand Down

0 comments on commit e9940c4

Please sign in to comment.