deprecation icon indicating copy to clipboard operation
deprecation copied to clipboard

A library to handle automated deprecations

Results 22 deprecation issues
Sort by recently updated
recently updated
newest added

Deprecation decorator doesn't work on classes if the class being deprecated has a subclass that inherits from it, even if all the subclasses are marked deprecated as well.

+ Add class `DeprecatedVariable` * Abstract warning check into `_get_warning_class()` * Abstract warning raising into `_warn_user()` * Abstract docstring wrapping into `_wrap_doctring()` + Implement tests for `DeprecatedVariable` * Update README...

Minor usability issue, should be easy to fix. Tried using it today and got a weird error. ``` Traceback (most recent call last): ... File "/home/.../lib/python3.7/site-packages/deprecation.py", line 232, in _function_wrapper...

Hi. I just hit and interesting use case that I was not able to solve with this library. There is a module level variable and it's name has changed. Since...

enhancement

#30 mentions a situation where the test decorator doesn't work properly with `nose`. We should support `nose` in tox and travis so that this fix doesn't end up being a...

Here I would like to discuss the possibility to extend the functionality of this package to notice about forthcoming API changes and the like. In many cases functions/classes/methods (you name...

enhancement

This looks quite interesting; however, it'd be highly beneficial to be able to optionally specify what is replacing the call. ```python import deprecation @deprecation.deprecated(deprecated_in="1.0", removed_in="2.0", current_version=__version__, details="Reasoning for change", replaced_by=bar)...

enhancement

When I load other libraries (see my attached chardet-3.0.4-py2.py3-none-any.whl example) into artifactory and then click on the PyPi info I see what is shown in the attachment, valid PyPi information....

bug

[this line](https://github.com/briancurtin/deprecation/blob/2a0ec0710a9fce97161886d81a10cebd8bf0d882/deprecation.py#L245) throws for builtin (native) functions/classes because `__doc__` is not writable

resolves #56 # Solution to add types to package using a stubs file - add stubs file (`deprecation.pyi`) - add `py.typed` marker file to indicate that package has type hints...