Skip to content

Commit 1da86aa

Browse files
committed
Fix 'B028 No explicit stacklevel keyword argument found'
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
1 parent 7aa69d4 commit 1da86aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

replicate/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def predict(self, **kwargs) -> Union[Any, Iterator[Any]]:
1818
warnings.warn(
1919
"version.predict() is deprecated. Use replicate.run() instead. It will be removed before version 1.0.",
2020
DeprecationWarning,
21+
stacklevel=1,
2122
)
2223

2324
prediction = self._client.predictions.create(version=self, input=kwargs)

0 commit comments

Comments
 (0)