Upgrade mypy to 1.4.1 (#3193)
This commit is contained in:
Родитель
b38c531b7f
Коммит
7bf2bbf4ca
|
@ -201,7 +201,7 @@ def _sort_by_total_order(
|
|||
|
||||
|
||||
def process_query(
|
||||
user_query: str, sort_spec: str = None,
|
||||
user_query: str, sort_spec: str|None = None,
|
||||
show_unlisted=False, show_deleted=False, show_enterprise=False,
|
||||
start=0, num=DEFAULT_RESULTS_PER_PAGE) -> tuple[list[dict[str, Any]], int]:
|
||||
"""Parse the user's query, run it, and return a list of features."""
|
||||
|
|
|
@ -30,7 +30,7 @@ from internals.review_models import Gate
|
|||
|
||||
def single_field_query_async(
|
||||
field_name: str, operator: str, val: Union[str, int, datetime.datetime],
|
||||
limit: int = None) -> Union[list[int], Future]:
|
||||
limit: int|None = None) -> Union[list[int], Future]:
|
||||
"""Create a query for one FeatureEntry field and run it, returning a promise."""
|
||||
# Note: We don't exclude deleted features, that's done by process_query.
|
||||
field_name = field_name.lower()
|
||||
|
|
|
@ -7,7 +7,7 @@ coverage==5.5
|
|||
gunicorn==20.1.0
|
||||
|
||||
# Mypy and dependencies
|
||||
mypy==0.982
|
||||
mypy==1.4.1
|
||||
types-protobuf
|
||||
types-redis
|
||||
types-requests
|
||||
|
|
Загрузка…
Ссылка в новой задаче