@@ -155,7 +155,7 @@ def get_default_organizer(cls) -> str:
155
155
return cls ._default_organizer .get_default () # type: ignore
156
156
except AttributeError :
157
157
# TODO: This exception handling is required for Pydantic 1.x compatibility. To be removed when the dependency is deprecated.
158
- return cls ._default_organizer
158
+ return cls () ._default_organizer
159
159
160
160
@classmethod
161
161
def get_default_processors (cls ) -> List [GenericProcessor ]:
@@ -164,7 +164,7 @@ def get_default_processors(cls) -> List[GenericProcessor]:
164
164
return cls ._processors .get_default () # type: ignore
165
165
except AttributeError :
166
166
# TODO: This exception handling is required for Pydantic 1.x compatibility. To be removed when the dependency is deprecated.
167
- return cls ._processors
167
+ return cls () ._processors
168
168
169
169
@classmethod
170
170
def get_default_include_filters (cls ) -> Dict [str , List [str ]]:
@@ -173,7 +173,7 @@ def get_default_include_filters(cls) -> Dict[str, List[str]]:
173
173
return cls ._include_filter .get_default () # type: ignore
174
174
except AttributeError :
175
175
# TODO: This exception handling is required for Pydantic 1.x compatibility. To be removed when the dependency is deprecated.
176
- return cls ._include_filter
176
+ return cls () ._include_filter
177
177
178
178
@classmethod
179
179
def get_default_exclude_filters (cls ) -> Dict [str , List [str ]]:
@@ -182,7 +182,7 @@ def get_default_exclude_filters(cls) -> Dict[str, List[str]]:
182
182
return cls ._exclude_filter .get_default () # type: ignore
183
183
except AttributeError :
184
184
# TODO: This exception handling is required for Pydantic 1.x compatibility. To be removed when the dependency is deprecated.
185
- return cls ._exclude_filter
185
+ return cls () ._exclude_filter
186
186
187
187
@classmethod
188
188
def get_extended_data (cls ):
0 commit comments