Skip to content

Commit 0f48b2f

Browse files
committed
DOC make the persistence warning same as user guide (#259)
1 parent e7b655c commit 0f48b2f

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

skops/io/_persist.py

+12-16
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ def dump(obj: Any, file: str | Path | BinaryIO) -> None:
4848
4949
.. warning::
5050
51-
This feature is very early in development, which means the API is
52-
unstable and it is **not secure** at the moment. Therefore, use the same
53-
caution as you would for ``pickle``: Don't load from sources that you
54-
don't trust. In the future, more security will be added.
51+
This feature is heavily under development, which means the API is
52+
unstable and there might be security issues at the moment. Therefore,
53+
use caution when loading files from sources you don't trust.
5554
5655
Parameters
5756
----------
@@ -78,10 +77,9 @@ def dumps(obj: Any) -> bytes:
7877
7978
.. warning::
8079
81-
This feature is very early in development, which means the API is
82-
unstable and it is **not secure** at the moment. Therefore, use the same
83-
caution as you would for ``pickle``: Don't load from sources that you
84-
don't trust. In the future, more security will be added.
80+
This feature is heavily under development, which means the API is
81+
unstable and there might be security issues at the moment. Therefore,
82+
use caution when loading files from sources you don't trust.
8583
8684
Parameters
8785
----------
@@ -102,10 +100,9 @@ def load(file: str | Path, trusted: bool | Sequence[str] = False) -> Any:
102100
103101
.. warning::
104102
105-
This feature is very early in development, which means the API is
106-
unstable and it is **not secure** at the moment. Therefore, use the same
107-
caution as you would for ``pickle``: Don't load from sources that you
108-
don't trust. In the future, more security will be added.
103+
This feature is heavily under development, which means the API is
104+
unstable and there might be security issues at the moment. Therefore,
105+
use caution when loading files from sources you don't trust.
109106
110107
Parameters
111108
----------
@@ -141,10 +138,9 @@ def loads(data: bytes, trusted: bool | Sequence[str] = False) -> Any:
141138
142139
.. warning::
143140
144-
This feature is very early in development, which means the API is
145-
unstable and it is **not secure** at the moment. Therefore, use the same
146-
caution as you would for ``pickle``: Don't load from sources that you
147-
don't trust. In the future, more security will be added.
141+
This feature is heavily under development, which means the API is
142+
unstable and there might be security issues at the moment. Therefore,
143+
use caution when loading files from sources you don't trust.
148144
149145
Parameters
150146
----------

0 commit comments

Comments
 (0)