Skip to content

Commit fb6d1fa

Browse files
Minor changes based on AI comments
1 parent e9164ae commit fb6d1fa

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/test_safe_serialization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ def test_env_defaults_when_not_set(self):
137137
message = {"password": "secret", "data": "x" * 20000}
138138
result = safe_serialize_for_log(message)
139139
# Default should redact 'password' (in default list)
140-
parsed_or_truncated = result
141140
if result.endswith("..."):
142141
# Truncated at default 10000 bytes
143142
assert len(result.encode("utf-8")) <= 10003

tests/test_trace_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def produce(self, *a, **kw):
2828
if cb:
2929
cb(None, object())
3030

31-
def flush(self, *a, **kw): # noqa: D401
31+
def flush(self, *a, **kw):
3232
return 0
3333

3434
logger = logging.getLogger("trace.kafka")

0 commit comments

Comments
 (0)