We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hash
1 parent 5959a16 commit 14a8573Copy full SHA for 14a8573
jupyter_ydoc/ybasedoc.py
@@ -114,6 +114,26 @@ def dirty(self, value: bool) -> None:
114
"""
115
self._ystate["dirty"] = value
116
117
+ @property
118
+ def hash(self) -> Optional[str]:
119
+ """
120
+ Returns the document hash as computed by contents manager.
121
+
122
+ :return: The document hash.
123
+ :rtype: Optional[str]
124
125
+ return self._ystate.get("hash")
126
127
+ @hash.setter
128
+ def hash(self, value: str) -> None:
129
130
+ Sets the document hash.
131
132
+ :param value: The document hash.
133
+ :type value: str
134
135
+ self._ystate["hash"] = value
136
137
@property
138
def path(self) -> Optional[str]:
139
0 commit comments