[Python-ideas] Re: Create a @deprecated decorator (annotation)

2021-07-29 Thread Sergei Lebedev
> Why would it be "interesting"? I don't see any practical advantage, and as soon as you need any form of logic you have to rewrite, so why bother? The advantage of having a declarative API for deprecations is tooling support. It is much easier to detect decorator application than to reliably infe

[Python-ideas] Deprecation APIs and language tooling

2021-07-12 Thread Sergei Lebedev
Hi python-ideas, The subject is by no means new nor unique, and in fact has been discussed on python-ideas at least once before as well as in python/mypy#2403