Skip to content

Commit 32fc459

Browse files
Format fix (#163)
* fix pylint c0413 * address mypy * address mypy * address mypy * address mypy
1 parent 597eda2 commit 32fc459

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

launch/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
77
"""
8+
# pylint: disable=C0413
89

910
import warnings
1011
from typing import Sequence

launch/pydantic_schemas.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@ def get_model_definitions_v1(request_schema: Type[BaseModel], response_schema: T
3030

3131

3232
def get_model_definitions_v2(request_schema: Type[BaseModel], response_schema: Type[BaseModel]) -> Dict[str, Any]:
33-
return {"RequestSchema": request_schema.model_json_schema(), "ResponseSchema": response_schema.model_json_schema()}
33+
return {
34+
"RequestSchema": request_schema.model_json_schema(), # type: ignore
35+
"ResponseSchema": response_schema.model_json_schema(), # type: ignore
36+
}
3437

3538

3639
if PYDANTIC_VERSION == 1:
37-
get_model_definitions: Callable = get_model_definitions_v1
40+
get_model_definitions: Callable = get_model_definitions_v1 # type: ignore
3841
elif PYDANTIC_VERSION == 2:
39-
get_model_definitions: Callable = get_model_definitions_v2
42+
get_model_definitions: Callable = get_model_definitions_v2 # type: ignore
4043

4144

4245
def get_model_definitions_from_flat_models(

0 commit comments

Comments
 (0)