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):
74
74
for type_args in get_args (base ):
75
75
if issubclass (type_args , FileDictItemModel ):
76
76
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
+ )
78
81
79
82
80
83
@classmethod
Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ class will be called.
67
67
68
68
69
69
70
+ ########################################################################################
71
+ #### File sessions
72
+ ########################################################################################
73
+
74
+
75
+
70
76
class SessionFileFull (SessionBase , Generic [T ]):
71
77
"""
72
78
Context manager for read-write access to a full file.
@@ -140,6 +146,12 @@ def write(self):
140
146
141
147
142
148
149
+ ########################################################################################
150
+ #### File sessions
151
+ ########################################################################################
152
+
153
+
154
+
143
155
class SessionDirFull (SessionBase , Generic [T ]):
144
156
"""
145
157
Context manager for read-write access to all files in a directory.
You can’t perform that action at this time.
0 commit comments