Commit 62f3156
NIK-TIGER-BILL
fix(deps): remove unmaintained deprecation package, inline stdlib replacement
The `deprecation` package (>=2.1.0,<3.0.0) has had no release since 2019
and is flagged as a security / maintenance risk by dependency scanners.
The package was only used in one file (`weaviate/collections/batch/client.py`)
to add docstring notes and emit `DeprecationWarning` at call time.
This PR removes the external dependency and replaces it with an equivalent
`docstring_deprecated` helper implemented entirely with stdlib (`functools`,
`warnings`). The public behaviour is unchanged:
* The function docstring gets a `.. deprecated::` RST prefix.
* Calling the function emits a :class:`DeprecationWarning`.
The `typing_extensions.deprecated` import (already present) is kept because
it provides static analysis / IDE warnings via the `__deprecated__` attribute.
Fixes #1998
Signed-off-by: NIK-TIGER-BILL <nik.tiger.bill@github.com>1 parent bced996 commit 62f3156
2 files changed
Lines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
7 | 41 | | |
8 | 42 | | |
9 | 43 | | |
| |||
0 commit comments