Skip to content

Commit 9756c67

Browse files
committed
tests: silence pylint for stubs and fixtures
1 parent b657077 commit 9756c67

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

instrumentation-genai/opentelemetry-instrumentation-openai-agents-v2/tests/stubs/agents/tracing/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# pylint: skip-file
2+
13
from __future__ import annotations
24

35
from contextlib import contextmanager

instrumentation-genai/opentelemetry-instrumentation-openai-agents-v2/tests/stubs/opentelemetry/instrumentation/instrumentor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# pylint: skip-file
2+
13
from __future__ import annotations
24

35
from typing import Collection

instrumentation-genai/opentelemetry-instrumentation-openai-agents-v2/tests/test_tracer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# pylint: disable=wrong-import-position,wrong-import-order,import-error,no-name-in-module,unexpected-keyword-arg,no-value-for-parameter,redefined-outer-name
2+
13
from __future__ import annotations
24

35
import json
@@ -220,7 +222,7 @@ def test_normalize_messages_skips_empty_when_sensitive_enabled():
220222
normalized = processor._normalize_messages_to_role_parts(
221223
[{"role": "user", "content": None}]
222224
)
223-
assert normalized == []
225+
assert not normalized
224226

225227

226228
def test_normalize_messages_emits_placeholder_when_sensitive_disabled():

instrumentation-genai/opentelemetry-instrumentation-openai-agents-v2/tests/test_z_instrumentor_behaviors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# pylint: disable=wrong-import-position,wrong-import-order,import-error
2+
13
from __future__ import annotations
24

35
import sys

instrumentation-genai/opentelemetry-instrumentation-openai-agents-v2/tests/test_z_span_processor_unit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# pylint: disable=wrong-import-position,wrong-import-order,import-error,no-name-in-module,unexpected-keyword-arg,no-value-for-parameter,redefined-outer-name,too-many-locals,too-many-statements,too-many-branches
2+
13
from __future__ import annotations
24

35
import importlib
@@ -91,7 +93,7 @@ class _GenAiOutputTypeValues(Enum):
9193

9294

9395
def _collect(iterator) -> dict[str, Any]:
94-
return {key: value for key, value in iterator}
96+
return dict(iterator)
9597

9698

9799
@pytest.fixture

0 commit comments

Comments
 (0)