New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finding out if a function in a child class is overriding another function in the base class . #1175
Comments
There is currently no such feature. It would be very possible to do that, but it's not implemented, currently. Feel free to do it :) |
Okay, that is good to hear. I am kind of new to this contribution stuff, however i would very much like to work on this feature. So @davidhalter do you have some advice or guidance on how to get started working on Jedi? |
Can you quickly explain your use case? If I understood what you want to do I would probably have a better vision of this feature. Since this feature is going to be user facing, the first question we have to answer is what the API is going to look like. I can imagine two different ways:
What would you prefer? For the actual implementation you probably just need to do some name lookups and that's it. It's probably around 20 LOC. |
Sorry for the late reply. So what I had in mind for the use case was that user would be able to look at the definition of method within a class and then as part of the definition of the method there would be some indication that the method is being overridden because the parent class has the same method defined. So I guess my description fits into your second suggestion. However now that I think about it an I still do think that having some kind of indication or text within the definition object of method of a class would be helpful. So within the definition of method of a class, the method could have something like What do you think about what i've said. |
hey @davidhalter you mentioned that this feature has been mentioned before:
could you point me to the issue this was mentioned? |
Is it possible for Jedi to inspect a method in a class and to determine if that method is overiding the base class's function. So:
can Jedi like provide information as to whether the method in
Class B
is overriding the method inClass A
?The text was updated successfully, but these errors were encountered: