Skip to content

Commit b8be0b1

Browse files
committed
fix lint issues
1 parent 332895e commit b8be0b1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _flatten_compound_value_using_json(
151151
)
152152

153153

154-
def _flatten_compound_value(
154+
def _flatten_compound_value( # pylint: disable=too-many-return-statements
155155
key: str,
156156
value: Any,
157157
exclude_keys: Set[str],

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,9 +1041,9 @@ def instrument_generate_content(
10411041
opt_in_mode = _OpenTelemetrySemanticConventionStability._get_opentelemetry_stability_opt_in_mode(
10421042
_OpenTelemetryStabilitySignalType.GEN_AI
10431043
)
1044-
if (
1045-
opt_in_mode != _StabilityMode.GEN_AI_LATEST_EXPERIMENTAL
1046-
and opt_in_mode != _StabilityMode.DEFAULT
1044+
if opt_in_mode not in (
1045+
_StabilityMode.GEN_AI_LATEST_EXPERIMENTAL,
1046+
_StabilityMode.DEFAULT,
10471047
):
10481048
raise ValueError(f"Sem Conv opt in mode {opt_in_mode} not supported.")
10491049
snapshot = _MethodsSnapshot()

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
from .base import TestCase
3434

35+
# pylint: disable=too-many-public-methods
36+
3537

3638
class ExampleResponseSchema(BaseModel):
3739
name: str = Field(description="A Destination's Name")

0 commit comments

Comments
 (0)