Skip to content

Commit a3849b8

Browse files
lesnik512claude
andcommitted
style(story-1.6): apply ruff format to msgspec decoder and isolation test
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a5c8585 commit a3849b8

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

‎src/httpware/decoders/msgspec.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
import msgspec
1010

1111

12-
MISSING_DEPENDENCY_MESSAGE = (
13-
"MsgspecDecoder requires the 'msgspec' extra. "
14-
"Install with: pip install httpware[msgspec]"
15-
)
12+
MISSING_DEPENDENCY_MESSAGE = "MsgspecDecoder requires the 'msgspec' extra. Install with: pip install httpware[msgspec]"
1613

1714
T = TypeVar("T")
1815

‎tests/test_optional_extras_isolation.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ def test_importing_httpware_does_not_import_msgspec() -> None:
1515
[
1616
sys.executable,
1717
"-c",
18-
"import httpware; import sys; "
19-
"sys.exit(0 if 'msgspec' not in sys.modules else 1)",
18+
"import httpware; import sys; sys.exit(0 if 'msgspec' not in sys.modules else 1)",
2019
],
2120
check=False,
2221
capture_output=True,
2322
)
2423
assert result.returncode == 0, (
25-
"msgspec was loaded transitively by `import httpware`; "
26-
f"stdout={result.stdout!r} stderr={result.stderr!r}"
24+
f"msgspec was loaded transitively by `import httpware`; stdout={result.stdout!r} stderr={result.stderr!r}"
2725
)

0 commit comments

Comments
 (0)