We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In a Python package consisting of only one file
foobar/_main.py
# _main.py def f(x: int) -> int: return x + 1
the function f can only be reached via a private path, namely _main.f. Still, when running
f
_main.f
stubgen foobar/
the corresponding stub is created in
out/_main.pyi
without specifying --include-private.
--include-private
This is with mypy 1.8.0 [Python 3.11.6].
The text was updated successfully, but these errors were encountered:
Fix: --include-private issue (python#16808)
07f8410
* (fix): when --include-private is not passed stubgen omits packages and modules which names start with "_" and do not end with "__"
a8968f6
* (chore): add missing type hints * (docs): add docsting
@nschloe,
#16822 should fix this. I'd really appreciate if you manage to test it.
Sorry, something went wrong.
759c58c
* (fix): add checking if --include-private passed
Successfully merging a pull request may close this issue.
In a Python package consisting of only one file
the function
f
can only be reached via a private path, namely_main.f
. Still, when runningthe corresponding stub is created in
without specifying
--include-private
.This is with mypy 1.8.0 [Python 3.11.6].
The text was updated successfully, but these errors were encountered: