Skip to content

Commit 14b1c9b

Browse files
committed
fix ruff formatting
Assisted-by: Claude Sonnet 4.6
1 parent 14ba572 commit 14b1c9b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
def _load_entry_point_propagator(name: str) -> TextMapPropagator:
3737
"""Load a propagator by name from the opentelemetry_propagator entry point group."""
3838
try:
39-
ep = next(entry_points(group="opentelemetry_propagator", name=name), None)
39+
ep = next(
40+
entry_points(group="opentelemetry_propagator", name=name), None
41+
)
4042
if not ep:
4143
raise ConfigurationError(
4244
f"Propagator '{name}' not found. "

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ def _filter_attributes(
172172

173173
result: dict[str, object] = {}
174174
for key, value in attrs.items():
175-
if included and not any(
176-
fnmatch.fnmatch(key, pat) for pat in included
177-
):
175+
if included and not any(fnmatch.fnmatch(key, pat) for pat in included):
178176
continue
179177
if excluded and any(fnmatch.fnmatch(key, pat) for pat in excluded):
180178
continue

0 commit comments

Comments
 (0)