In one of my projects, I observed that the behavior for using decorators depends on whether the function that you use for decorating is contained in the same or another file.
I get the following output for the code provided below:
As you see, there is no entry for the class using the imported decorator, although both the classes and the decorators are identical (except their name). I would have expected that both classes will be documented in the same way.
We probably incorrectly detect the decorator usage. I'm sorry but I don't have time to investigate this so it will be stalled for a long time probably...
Describe the bug
Hello everyone :)
In one of my projects, I observed that the behavior for using decorators depends on whether the function that you use for decorating is contained in the same or another file. I get the following output for the code provided below:
As you see, there is no entry for the class using the imported decorator, although both the classes and the decorators are identical (except their name). I would have expected that both classes will be documented in the same way.
How to Reproduce
conf.py:
index.rst:
test.py:
utils.py:
Environment Information
Sphinx extensions
Additional context
No response