question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Let deprecated decorater take user-defined deprecation warning

See original GitHub issue

As requested by @bsipocz . Currently, the deprecated decorator only emits AstropyDeprecationWarning or AstropyPendingDeprecationWarning. It would be nice if these warnings can be overridden by an user option.

https://github.com/astropy/astropy/blob/0725a5cbd756e6301d0aa79cc049d60882b8c57d/astropy/utils/decorators.py#L112-L116

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Cadaircommented, Nov 7, 2018

Apache is compatible with BSD 3-Clause, there should be no issues.

1reaction
pllimcommented, Nov 7, 2018

Something for the @astropy/coordinators to think about? 😸 (Would the benefit of adding debtcollector as required dependency outweighs the maintenance cost of keeping up with it? Or do we bundle it? Or do we keep ours as-is and simply redirect affiliated packages to it?)

Read more comments on GitHub >

github_iconTop Results From Across the Web

decorators in the python standard lib (@deprecated specifically)
It offers the deprecated() decorator to wrap functions, providing proper warnings both in documentation and via Python's warnings system, as well as the ......
Read more >
deprecation — deprecation 2.0.6 documentation
deprecation is a library that enables automated deprecations. It offers the deprecated() decorator to wrap functions, providing proper warnings both in ...
Read more >
Fix deprecation warning that appear in Python 3.8+ · Issue #203
9. The presence of deprecation warnings does not mean that the library doesn't support the current python version. It just indicates that the...
Read more >
Python deprecation - DEV Community ‍ ‍
When deprecating classes you have to consider two separate use cases. Instantiating an object of a deprecated class can throw a deprecation ......
Read more >
Deprecation warnings in legacy JavaScript code using ...
deprecation is the discouragement of use of some terminology, feature, ... In the first file I define a class with a deprecated method: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found