verifytypes: Missing docstring not reported for classes and methods from publicly exported classes in private modules #6758
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
Describe the bug
pyright --verifytypes
does not give warnings for missing docstrings in classes or class methods in private modules, even if they are publicly exported in an__init__.py
file. Classes in public modules, and functions in private modules, both get warnings reported.Noticed it when authoring python-trio/trio#2898
Code or Screenshots
test_pkg/__init__.py
test_pkg/foo.py
test_pkg/bar.py
output:
The two warnings are correct, but I expected an additional two warnings - one for
test_pkg.Bar
and one fortest_pkg.Bar.bar
VS Code extension or command-line
Command line, version 1.1.341
The text was updated successfully, but these errors were encountered: