File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,10 @@ def _get_item_model(cls):
7474 for type_args in get_args (base ):
7575 if issubclass (type_args , FileDictItemModel ):
7676 return type_args
77- raise AttributeError ("FileDictModel must specify a FileDictItemModel" )
77+ raise AttributeError (
78+ "FileDictModel must specify a FileDictItemModel "
79+ "(e.g. Users(FileDictModel[User]))"
80+ )
7881
7982
8083 @classmethod
Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ class will be called.
6767
6868
6969
70+ ########################################################################################
71+ #### File sessions
72+ ########################################################################################
73+
74+
75+
7076class SessionFileFull (SessionBase , Generic [T ]):
7177 """
7278 Context manager for read-write access to a full file.
@@ -140,6 +146,12 @@ def write(self):
140146
141147
142148
149+ ########################################################################################
150+ #### File sessions
151+ ########################################################################################
152+
153+
154+
143155class SessionDirFull (SessionBase , Generic [T ]):
144156 """
145157 Context manager for read-write access to all files in a directory.
You can’t perform that action at this time.
0 commit comments