Skip to content

Commit 0dc2861

Browse files
committed
Precommit and constraints
1 parent 6c2740a commit 0dc2861

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

dev-requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ psutil==5.9.6
1717
GitPython==3.1.41
1818
pre-commit==3.7.0; python_version >= '3.9'
1919
pre-commit==3.5.0; python_version < '3.9'
20-
ruff==0.6.9
21-
grpcio==1.66.2
20+
ruff==0.6.9

opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ def _load_credential_from_envvar(
153153
credentials = _import_config_component(
154154
credential_env, "opentelemetry_otlp_credential_provider"
155155
)()
156-
if _GRPC_IMPORTED and isinstance(credentials, ChannelCredentials): # type: ignore[reportPossiblyUnboundVariable]
156+
if _GRPC_IMPORTED and isinstance(credentials, ChannelCredentials): # type: ignore[reportPossiblyUnboundVariable]
157157
return ("credentials", credentials)
158158

159-
if _REQUESTS_IMPORTED and isinstance(credentials, Session): # type: ignore[reportPossiblyUnboundVariable]
159+
if _REQUESTS_IMPORTED and isinstance(credentials, Session): # type: ignore[reportPossiblyUnboundVariable]
160160
return ("session", credentials)
161161
raise RuntimeError(
162162
f"{credential_env} is neither a grpc.ChannelCredentials or requests.Session type."

0 commit comments

Comments
 (0)