Skip to content
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

get_function_name_from_frame() has bugs #17

Open
gvanrossum opened this issue Nov 17, 2017 · 0 comments
Open

get_function_name_from_frame() has bugs #17

gvanrossum opened this issue Nov 17, 2017 · 0 comments

Comments

@gvanrossum
Copy link
Contributor

It's possible to get two functions in the same file with the same name. For example

class CameraNotifier(NSObject):
    def init(self):
        def register(events, center):

causes a function named "CameraNotifier.register" to be recorded, which may conflict with an actual method of the same class with the same name.

(Note that usually this is resolved in pyannotate by looking at the line numbers.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant