We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78af5a2 commit 4699a2cCopy full SHA for 4699a2c
bugbug/tools/code_review/agent.py
@@ -135,8 +135,8 @@ def __init__(
135
136
self.verbose = verbose
137
138
- @staticmethod
139
- def create(**kwargs):
+ @classmethod
+ def create(cls, **kwargs):
140
"""Factory method to instantiate the tool with default dependencies.
141
142
This method takes the same parameters as the constructor, but all
@@ -181,7 +181,7 @@ def create(**kwargs):
181
182
kwargs["suggestion_filterer"] = SuggestionFilteringTool.create()
183
184
- return CodeReviewTool(**kwargs)
+ return cls(**kwargs)
185
186
def count_tokens(self, text):
187
return len(self._tokenizer.encode(text))
0 commit comments