diff --git a/api/util/mappers/sdk.py b/api/util/mappers/sdk.py index 2bc9c4a0ff61..01edf12dfba0 100644 --- a/api/util/mappers/sdk.py +++ b/api/util/mappers/sdk.py @@ -48,5 +48,5 @@ def map_environment_to_sdk_document(environment: "Environment") -> SDKDocument: ] return engine_environment.model_dump( - exclude=SDK_DOCUMENT_EXCLUDE, + exclude=SDK_DOCUMENT_EXCLUDE, # type: ignore ) diff --git a/api/util/pydantic.py b/api/util/pydantic.py index d526c76ee95b..759992f8fcd3 100644 --- a/api/util/pydantic.py +++ b/api/util/pydantic.py @@ -14,7 +14,7 @@ def exclude_model_fields( for field_name, field in model_cls.model_fields.items() if field_name not in exclude_fields } - return create_model( + return create_model( # type: ignore model_cls.__name__, __config__=model_cls.model_config, **fields,