We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
RecordEntry.validate
1 parent 4a05093 commit 5f281b8Copy full SHA for 5f281b8
src/installer/records.py
@@ -146,6 +146,10 @@ def __eq__(self, other: object) -> bool:
146
def validate(self, data: bytes) -> bool:
147
"""Validate that ``data`` matches this instance.
148
149
+ .. attention::
150
+ .. deprecated:: 0.8.0
151
+ Use :py:meth:`validate_stream` instead, with ``BytesIO(data)``.
152
+
153
:param data: Contents of the file corresponding to this instance.
154
:return: whether ``data`` matches hash and size.
155
"""
0 commit comments