From 42212100b493f693798a6532e2874026c5593b5e Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 16 Dec 2022 08:43:16 +0300 Subject: [PATCH] Cleanup shared.model.base.py --- pydantic_redis/shared/model/base.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/pydantic_redis/shared/model/base.py b/pydantic_redis/shared/model/base.py index aa4a98ad..4b68698c 100644 --- a/pydantic_redis/shared/model/base.py +++ b/pydantic_redis/shared/model/base.py @@ -57,32 +57,11 @@ def get_primary_key_field(cls): """Gets the protected _primary_key_field""" return cls._primary_key_field - # - # @classmethod - # def get_nested_model_tuple_fields(cls) -> Dict[str, Tuple[Any, ...]]: - # """Returns the fields that have tuples of nested models""" - # raise NotImplementedError("implement get_nested_model_tuple_fields first") - # - # @classmethod - # def get_nested_model_list_fields(cls) -> Dict[str, Type["AbstractModel"]]: - # """Returns the fields that have list of nested models""" - # raise NotImplementedError("implement get_nested_model_list_fields first") - # - # @classmethod - # def get_nested_model_fields(cls) -> Dict[str, Type["AbstractModel"]]: - # """Returns the fields that have nested models""" - # raise NotImplementedError("implement get_nested_model_fields first") - @classmethod def get_field_types(cls) -> Dict[str, Any]: """Returns the fields types of this model""" return cls._field_types - # @classmethod - # def get_store(cls) -> "AbstractStore": - # """Returns the instance of the store for this model""" - # raise NotImplementedError("implement get_store first") - @classmethod def initialize(cls): """Initializes class-wide variables for performance's reasons e.g. it caches the nested model fields"""