get_function_name_from_frame() has bugs
Open
- 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
Assessment
This issue has not been assessed yet.