Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ def get_accept_header_from_scope(scope: types.Scope) -> str:
return headers.get("Accept", "").strip().lower()


def parse_accept_version(accept_header: str, vendor_media_type: str) -> AcceptVersion:
...
def parse_accept_version(accept_header: str, vendor_media_type: str) -> AcceptVersion: ...
```

`parse_accept_version` owns steps 3-7 of today's middleware, in order,
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ select = ["ALL"]
ignore = [
"D1", # allow missing docstrings
"S101", # allow asserts
"CPY001", # copyright lives in LICENSE, not per-file headers
"TCH", # ignore flake8-type-checking
"FBT", # allow boolean args
"D203", # "one-blank-line-before-class" conflicting with D211
Expand Down
Loading