You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Protocol for the document type managed by FileManager."""
26
+
27
+
pass
28
+
29
+
30
+
DocumentT=TypeVar("DocumentT", covariant=True)
25
31
26
32
27
33
classUnexpectedFileOpenError(UsethisError):
@@ -107,7 +113,7 @@ def get(self) -> DocumentT:
107
113
else:
108
114
returnself._content
109
115
110
-
defcommit(self, document: DocumentT) ->None:
116
+
defcommit(self, document: DocumentT) ->None:# pyright: ignore[reportGeneralTypeIssues] not modifying DocumentT so safe to use covariant type variable here
111
117
"""Store the given document in memory for deferred writing."""
0 commit comments