Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify (request.cookies.)getlist function #2838

Merged
merged 6 commits into from
Jun 23, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
format
  • Loading branch information
ahopkins committed Jun 23, 2024
commit c806362b39a0eb1995ed099b5ed0caf0807cbe95
4 changes: 3 additions & 1 deletion sanic/request/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def get(self, name: str, default: Optional[Any] = None) -> Optional[Any]:
""" # noqa: E501
return super().get(name, [default])[0]

def getlist(self, name: str, default: Optional[List[Any]] = None) -> List[Any]:
def getlist(
self, name: str, default: Optional[List[Any]] = None
) -> List[Any]:
"""Return the entire list

Args:
Expand Down
Loading