Skip to content

Commit 05bed52

Browse files
committed
fix lint issues
1 parent 32ae223 commit 05bed52

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

instrumentation-genai/opentelemetry-instrumentation-google-genai/src/opentelemetry/instrumentation/google_genai/generate_content.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
# pylint: disable=too-many-lines
1415

1516
import copy
1617
import dataclasses

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/test_tool_call_instrumentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ def somefunction(x, y=2):
285285

286286
def test_new_semconv_tool_calls_record_parameter_values(self):
287287
for mode in ContentCapturingMode:
288+
calls = []
288289
patched_environ = patch.dict(
289290
"os.environ",
290291
{
@@ -303,7 +304,6 @@ def test_new_semconv_tool_calls_record_parameter_values(self):
303304
):
304305
self.setUp()
305306
with patched_environ, patched_otel_mapping:
306-
calls = []
307307

308308
def handle(*args, **kwargs):
309309
calls.append((args, kwargs))
@@ -376,6 +376,7 @@ def somefunction(someparam, otherparam=2):
376376

377377
def test_new_semconv_tool_calls_record_return_values(self):
378378
for mode in ContentCapturingMode:
379+
calls = []
379380
patched_environ = patch.dict(
380381
"os.environ",
381382
{
@@ -394,7 +395,6 @@ def test_new_semconv_tool_calls_record_return_values(self):
394395
):
395396
self.setUp()
396397
with patched_environ, patched_otel_mapping:
397-
calls = []
398398

399399
def handle(*args, **kwargs):
400400
calls.append((args, kwargs))

0 commit comments

Comments
 (0)