chore(router): document the breadcrumb write-back and ratchet lint budgets

This commit is contained in:
mateo-berri 2026-09-02 21:40:25 -07:00
parent 7bc2d0b06e
commit 7c87451ead
4 changed files with 13 additions and 12 deletions

View file

@ -3,7 +3,7 @@
"limit": 14074
},
"reportArgumentType": {
"limit": 2215
"limit": 2214
},
"reportAssignmentType": {
"limit": 319
@ -42,7 +42,7 @@
"limit": 12
},
"reportIndexIssue": {
"limit": 25
"limit": 24
},
"reportInvalidTypeForm": {
"limit": 34
@ -57,7 +57,7 @@
"limit": 5601
},
"reportMissingTypeArgument": {
"limit": 15290
"limit": 15289
},
"reportMissingTypeStubs": {
"limit": 40
@ -105,7 +105,7 @@
"limit": 109
},
"reportUnknownMemberType": {
"limit": 38332
"limit": 38328
},
"reportUnknownParameterType": {
"limit": 19625

View file

@ -8073,7 +8073,8 @@ class Router:
if isinstance(earlier_breadcrumbs, (list, tuple))
else ()
)
kwargs[_metadata_var]["previous_models"] = (*kept_breadcrumbs, mask_credentials_in_payload(previous_model))
breadcrumbs: Final = (*kept_breadcrumbs, mask_credentials_in_payload(previous_model))
kwargs[_metadata_var]["previous_models"] = breadcrumbs # rebind-ok: the logging object already holds this dict
return kwargs
def _update_usage(self, deployment_id: str, parent_otel_span: Span | None) -> int:

View file

@ -144,7 +144,7 @@
"limit": 1
},
"PLR1704": {
"limit": 3
"limit": 2
},
"PLR1714": {
"limit": 253
@ -240,13 +240,13 @@
"limit": 96
},
"TRY201": {
"limit": 403
"limit": 402
},
"TRY203": {
"limit": 111
"limit": 110
},
"TRY300": {
"limit": 854
"limit": 853
},
"UP028": {
"limit": 2

View file

@ -1,9 +1,9 @@
{
"LIT001": {
"limit": 22334
"limit": 22333
},
"LIT002": {
"limit": 26763
"limit": 26760
},
"LIT003": {
"limit": 261
@ -30,7 +30,7 @@
"limit": 16480
},
"LIT011": {
"limit": 5520
"limit": 5518
},
"LIT012": {
"limit": 4489