[completions] Down-rank deprecated symbols (original) (raw)

Here are the completions currently offered if you type from abc import abstract<CURSOR>:

Image

But I don't want to import abstractclassmethod -- it's deprecated! And it should be easy for our completions machinery to detect that, since it has the @deprecated decorator on its typeshed definition. It seems wrong for the deprecated symbol (abc.abstractclassmethod) to appear higher in the list of completions suggestions than its nondeprecated replacement (abstractmethod).