mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-28 10:25:20 +00:00
MINOR: Fix python checkstyle (#20489)
This commit is contained in:
parent
235f61aaa7
commit
d9fc607768
@ -17,7 +17,7 @@ be self-sufficient with only pydantic at import time.
|
|||||||
"""
|
"""
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, Dict, Literal, Optional, Union
|
from typing import Any, Callable, Dict, Literal, Optional, Union
|
||||||
|
|
||||||
from pydantic import BaseModel as PydanticBaseModel
|
from pydantic import BaseModel as PydanticBaseModel
|
||||||
from pydantic import WrapSerializer, model_validator
|
from pydantic import WrapSerializer, model_validator
|
||||||
@ -73,7 +73,7 @@ class BaseModel(PydanticBaseModel):
|
|||||||
def model_dump_json( # pylint: disable=too-many-arguments
|
def model_dump_json( # pylint: disable=too-many-arguments
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
mask_secrets: bool = None,
|
mask_secrets: Optional[bool] = None,
|
||||||
indent: Optional[int] = None,
|
indent: Optional[int] = None,
|
||||||
include: IncEx = None,
|
include: IncEx = None,
|
||||||
exclude: IncEx = None,
|
exclude: IncEx = None,
|
||||||
@ -84,6 +84,7 @@ class BaseModel(PydanticBaseModel):
|
|||||||
exclude_none: bool = True,
|
exclude_none: bool = True,
|
||||||
round_trip: bool = False,
|
round_trip: bool = False,
|
||||||
warnings: Union[bool, Literal["none", "warn", "error"]] = True,
|
warnings: Union[bool, Literal["none", "warn", "error"]] = True,
|
||||||
|
fallback: Optional[Callable[[Any], Any]] = None,
|
||||||
serialize_as_any: bool = False,
|
serialize_as_any: bool = False,
|
||||||
) -> str:
|
) -> str:
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user