Skip to content

Commit 7dc907e

Browse files
committed
Please pylint
1 parent e0a0931 commit 7dc907e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_bedrock.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# pylint:disable=too-many-lines
16+
1517
from __future__ import annotations
1618

1719
import json
@@ -93,6 +95,7 @@ def test_converse_with_content_different_events(
9395
bedrock_runtime_client,
9496
instrument_with_content,
9597
):
98+
# pylint:disable=too-many-locals
9699
messages = anthropic_claude_converse_messages()
97100
llm_model_value = "anthropic.claude-v2"
98101
system_content = anthropic_claude_converse_system()
@@ -315,6 +318,7 @@ def test_converse_stream_with_content_different_events(
315318
bedrock_runtime_client,
316319
instrument_with_content,
317320
):
321+
# pylint:disable=too-many-locals
318322
messages = anthropic_claude_converse_messages()
319323
llm_model_value = "anthropic.claude-v2"
320324
system_content = anthropic_claude_converse_system()
@@ -325,7 +329,7 @@ def test_converse_stream_with_content_different_events(
325329
)
326330

327331
# consume the stream in order to have it traced
328-
for event in response["stream"]:
332+
for _ in response["stream"]:
329333
pass
330334

331335
(span,) = span_exporter.get_finished_spans()
@@ -440,7 +444,7 @@ def test_converse_stream_no_content_different_events(
440444
)
441445

442446
# consume the stream in order to have it traced
443-
for event in response["stream"]:
447+
for _ in response["stream"]:
444448
pass
445449

446450
(span,) = span_exporter.get_finished_spans()
@@ -680,6 +684,7 @@ def test_invoke_model_with_content_different_events(
680684
instrument_with_content,
681685
model_family,
682686
):
687+
# pylint:disable=too-many-locals
683688
llm_model_value = get_model_name_from_family(model_family)
684689
max_tokens = 10
685690
if llm_model_value == "amazon.nova-micro-v1:0":
@@ -952,6 +957,7 @@ def test_invoke_model_with_response_stream_with_content_different_events(
952957
instrument_with_content,
953958
model_family,
954959
):
960+
# pylint:disable=too-many-locals
955961
llm_model_value = get_model_name_from_family(model_family)
956962
if llm_model_value == "amazon.nova-micro-v1:0":
957963
messages = amazon_nova_messages()
@@ -975,7 +981,7 @@ def test_invoke_model_with_response_stream_with_content_different_events(
975981
)
976982

977983
# consume the stream in order to have it traced
978-
for event in response["body"]:
984+
for _ in response["body"]:
979985
pass
980986

981987
(span,) = span_exporter.get_finished_spans()
@@ -1132,7 +1138,7 @@ def test_invoke_model_with_response_stream_no_content_different_events(
11321138
)
11331139

11341140
# consume the stream in order to have it traced
1135-
for event in response["body"]:
1141+
for _ in response["body"]:
11361142
pass
11371143

11381144
(span,) = span_exporter.get_finished_spans()

0 commit comments

Comments
 (0)