Is there a way to highlight those overridden methods? #3465
Replies: 4 comments 1 reply
-
Moving this issue to discussion as an enhancement request for comments and upvotes. |
Beta Was this translation helpful? Give feedback.
-
FYI, There is a PEP regarding method override: https://peps.python.org/pep-0698/ |
Beta Was this translation helpful? Give feedback.
-
@xxc-zsz, does single-clicking on the overridden method's name give you the behavior that you want? For example, given the code below, if you single-click on the Note that double-click apparently does a string search, so all instances of the string "execute" within the file would be highlighted. So be sure to single-click. I noticed that if the parameter list of the two methods ( import abc
class Base(abc.ABC):
@abc.abstractmethod
def execute(self):
pass
def execute2(self):
pass
class OtherClass(abc.ABC):
@abc.abstractmethod
def execute(self):
pass
class Derived(Base):
def execute(self):
pass |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your reply. I can't rate whether this is good or bad. But the main purpose of my question is if there are multiple methods in the parent class and the child class only overrides some of them. Is there a way to highlight those overridden methods? Is it overcomplicated if I need my one-click method? Any ideas are appreciated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I override one or several methods of the parent class in a subclass, is it possible to highlight those overridden methods?
Beta Was this translation helpful? Give feedback.
All reactions