dropbox / dropbox/pyannotate

get_function_name_from_frame() has bugs

Open
#17 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
60
PR merge metrics
No merged PRs in 30d

Description

It's possible to get two functions in the same file with the same name. For example
```py
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.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.