File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
pydantic_redis/shared/model Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -57,32 +57,11 @@ def get_primary_key_field(cls):
57
57
"""Gets the protected _primary_key_field"""
58
58
return cls ._primary_key_field
59
59
60
- #
61
- # @classmethod
62
- # def get_nested_model_tuple_fields(cls) -> Dict[str, Tuple[Any, ...]]:
63
- # """Returns the fields that have tuples of nested models"""
64
- # raise NotImplementedError("implement get_nested_model_tuple_fields first")
65
- #
66
- # @classmethod
67
- # def get_nested_model_list_fields(cls) -> Dict[str, Type["AbstractModel"]]:
68
- # """Returns the fields that have list of nested models"""
69
- # raise NotImplementedError("implement get_nested_model_list_fields first")
70
- #
71
- # @classmethod
72
- # def get_nested_model_fields(cls) -> Dict[str, Type["AbstractModel"]]:
73
- # """Returns the fields that have nested models"""
74
- # raise NotImplementedError("implement get_nested_model_fields first")
75
-
76
60
@classmethod
77
61
def get_field_types (cls ) -> Dict [str , Any ]:
78
62
"""Returns the fields types of this model"""
79
63
return cls ._field_types
80
64
81
- # @classmethod
82
- # def get_store(cls) -> "AbstractStore":
83
- # """Returns the instance of the store for this model"""
84
- # raise NotImplementedError("implement get_store first")
85
-
86
65
@classmethod
87
66
def initialize (cls ):
88
67
"""Initializes class-wide variables for performance's reasons e.g. it caches the nested model fields"""
You can’t perform that action at this time.
0 commit comments