Wording in mypy.plugin.Plugin.get_method[_signature]_hook
docstring
#19181
Labels
mypy.plugin.Plugin.get_method[_signature]_hook
docstring
#19181
Uh oh!
There was an error while loading. Please reload this page.
Documentation
The docstring of these plugin hook methods currently say:
mypy/mypy/plugin.py
Lines 647 to 648 in 057508b
...
mypy/mypy/plugin.py
Line 664 in 057508b
I understand this to mean that the argument to
fullname
will be"__main__.Base.method"
, because__main__.Base
definesmethod
.However, this doesn't seem to be the case. Setting up the same example in the docstring:
mypy.ini
plugin.py
test.py
$ mypy Hook will be called with `test.Derived.method`
I installed as far back as mypy 0.9x and it was the same behaviour as described above, displaying
test.Derived.method
(nottest.Base.method
).Is there something wrong with the docstring (perhaps from outdated behaviour that no longer applies), or have I misunderstood something?
The text was updated successfully, but these errors were encountered: