File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -271,13 +271,17 @@ def __init__(self, item: Any) -> None:
271271
272272 @classmethod
273273 def is_item (cls , item : Any ) -> bool :
274- return any (adapter_class .is_item (item ) for adapter_class in cls .ADAPTER_CLASSES )
274+ for adapter_class in cls .ADAPTER_CLASSES :
275+ if adapter_class .is_item (item ):
276+ return True
277+ return False
275278
276279 @classmethod
277280 def is_item_class (cls , item_class : type ) -> bool :
278- return any (
279- adapter_class .is_item_class (item_class ) for adapter_class in cls .ADAPTER_CLASSES
280- )
281+ for adapter_class in cls .ADAPTER_CLASSES :
282+ if adapter_class .is_item_class (item_class ):
283+ return True
284+ return False
281285
282286 @classmethod
283287 def get_field_meta_from_class (cls , item_class : type , field_name : str ) -> MappingProxyType :
You can’t perform that action at this time.
0 commit comments