From eae58e5d2ae49f064a397a7bfc2e7f9126f61fe1 Mon Sep 17 00:00:00 2001 From: "L. Karkkainen" Date: Sun, 5 Feb 2023 16:37:14 +0000 Subject: [PATCH] Minor cleanup. --- sanic/headers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic/headers.py b/sanic/headers.py index a7b1b0c8..1ef62f67 100644 --- a/sanic/headers.py +++ b/sanic/headers.py @@ -73,7 +73,7 @@ class MediaType: allow_type_wildcard=True, allow_subtype_wildcard=True, ) -> Optional[MediaType]: - """Check if this media type matches the given media type. + """Check if this media type matches the given mime type/subtype. Wildcards are supported both ways on both type and subtype. @@ -147,7 +147,7 @@ class AcceptList(list): - operator 'in' for checking explicit matches (wildcards as literals) """ - def match(self, *mimes: List[str]) -> Matched: + def match(self, *mimes: str) -> Matched: """Find a media type accepted by the client. This method can be used to find which of the media types requested by