|
22 | 22 | :func:`~domdf_python_tools.iterative.Len`, and |
23 | 23 | :func:`~domdf_python_tools.iterative.double_chain` |
24 | 24 | moved to :func:`domdf_python_tools.iterative`. |
| 25 | +
|
| 26 | +.. versionchanged:: 2.3.0 |
| 27 | +
|
| 28 | + Removed :func:`domdf_python_tools.utils.deprecated`. |
| 29 | + Use the new `deprecation-alias <https://pypi.org/project/deprecation-alias/>`_ package instead. |
| 30 | +
|
25 | 31 | """ |
26 | 32 | # |
27 | 33 | # Copyright © 2018-2020 Dominic Davis-Foster <dominic@davis-foster.co.uk> |
|
41 | 47 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
42 | 48 | # MA 02110-1301, USA. |
43 | 49 | # |
44 | | -# check_dependencies based on https://stackoverflow.com/a/29044693/3092681 |
45 | | -# Copyright © 2015 TehTechGuy |
46 | | -# Licensed under CC-BY-SA |
47 | | -# |
48 | 50 | # as_text from https://stackoverflow.com/a/40935194 |
49 | 51 | # Copyright © 2016 User3759685 |
50 | 52 | # Available under the MIT License |
|
65 | 67 | from pprint import pformat |
66 | 68 | from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Optional, Tuple, Union |
67 | 69 |
|
68 | | -# 3rd party |
69 | | -from deprecation_alias import deprecated |
70 | | - |
71 | 70 | # this package |
72 | 71 | import domdf_python_tools.words |
73 | | -from domdf_python_tools import __version__ |
74 | 72 | from domdf_python_tools.typing import HasHead, String |
75 | 73 |
|
76 | 74 | if TYPE_CHECKING or domdf_python_tools.__docs: # pragma: no cover |
|
96 | 94 | "convert_indents", |
97 | 95 | "etc", |
98 | 96 | "head", |
99 | | - "deprecated", |
100 | 97 | "magnitude", |
101 | 98 | "trim_precision", |
102 | 99 | ] |
@@ -339,14 +336,6 @@ def head(obj: Union[Tuple, List, "DataFrame", "Series", String, HasHead], n: int |
339 | 336 | return str(obj[:n]) + etc # type: ignore |
340 | 337 |
|
341 | 338 |
|
342 | | -deprecated = deprecated( |
343 | | - deprecated_in="2.0.0", |
344 | | - removed_in="2.3.0", |
345 | | - current_version=__version__, |
346 | | - details="Use the new 'deprecation-alias' package instead." |
347 | | - )(deprecated) # yapf: disable |
348 | | - |
349 | | - |
350 | 339 | def magnitude(x: float) -> int: |
351 | 340 | """ |
352 | 341 | Returns the magnitude of the given value. |
|
0 commit comments