Taragolis commented on code in PR #37862:
URL: https://github.com/apache/airflow/pull/37862#discussion_r1510229260
##########
airflow/utils/pydantic.py:
##########
@@ -40,26 +40,22 @@ def is_pydantic_2_installed() -> bool:
from pydantic import BaseModel, ConfigDict, PlainSerializer,
PlainValidator, ValidationInfo
else:
- class BaseModel: # type: ignore[no-redef] # noqa
+ class BaseModel: # type: ignore[no-redef] # noqa: D101
def __init__(self, *args, **kwargs):
pass
- class ConfigDict: # type: ignore[no-redef] # noqa
+ class ConfigDict: # type: ignore[no-redef] # noqa: D101
def __init__(self, *args, **kwargs):
pass
- class PlainSerializer: # type: ignore[no-redef] # noqa
+ class PlainSerializer: # type: ignore[no-redef] # noqa: D101
def __init__(self, *args, **kwargs):
pass
- class PlainSerializer: # type: ignore[no-redef] # noqa
+ class PlainValidator: # type: ignore[no-redef] # noqa: D101
def __init__(self, *args, **kwargs):
pass
- class PlainValidator: # type: ignore[no-redef] # noqa
- def __init__(self, *args, **kwargs):
- pass
-
- class ValidationInfo: # type: ignore[no-redef] # noqa
Review Comment:
`PlainSerializer` defined 2 times
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]