small improvements on code smell

* fix some grammar/typo errors
* change some statements to be more clear
* use pattern matching for enum processing
This commit is contained in:
2023-08-23 18:02:45 +03:00
parent 1d4ed0e0c3
commit 9fa6722eaa
32 changed files with 204 additions and 174 deletions

View File

@@ -107,7 +107,7 @@ class BaseView(View, CorsViewMixin):
get non-empty value from request parameters
Args:
extractor(Callable[[str], T | None]): function to get value by the specified key
extractor(Callable[[str], T | None]): function to get value
key(str): key to extract value
Returns: