@@ -155,7 +155,7 @@ def get_default_organizer(cls) -> str:
155155 return cls ._default_organizer .get_default () # type: ignore
156156 except AttributeError :
157157 # 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
159159
160160 @classmethod
161161 def get_default_processors (cls ) -> List [GenericProcessor ]:
@@ -164,7 +164,7 @@ def get_default_processors(cls) -> List[GenericProcessor]:
164164 return cls ._processors .get_default () # type: ignore
165165 except AttributeError :
166166 # 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
168168
169169 @classmethod
170170 def get_default_include_filters (cls ) -> Dict [str , List [str ]]:
@@ -173,7 +173,7 @@ def get_default_include_filters(cls) -> Dict[str, List[str]]:
173173 return cls ._include_filter .get_default () # type: ignore
174174 except AttributeError :
175175 # 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
177177
178178 @classmethod
179179 def get_default_exclude_filters (cls ) -> Dict [str , List [str ]]:
@@ -182,7 +182,7 @@ def get_default_exclude_filters(cls) -> Dict[str, List[str]]:
182182 return cls ._exclude_filter .get_default () # type: ignore
183183 except AttributeError :
184184 # 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
186186
187187 @classmethod
188188 def get_extended_data (cls ):
0 commit comments