Skip to content

Commit

Permalink
Cleanup shared.model.base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinitto committed Dec 16, 2022
1 parent 9750202 commit 4221210
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions pydantic_redis/shared/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit 4221210

Please sign in to comment.