-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
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
"Arguments missing" for optional arguments #43
Comments
I got the same for using plt.hist() without "bins". Error message: Argument missing for parameter "bins" |
It sounds like your type stub file ( |
The |
You can modify this in the bundle if you wish, but I expect to fix this. |
This issue has been fixed in version 2020.7.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#202070-9-july-2020 |
Can you file a new issue? That's not related to this old closed issue, and is a bug with a bundled stub we ship. |
I noticed that when I use a function with optional arguments I get an error message for "missing arguments". In this case, I was using the
subplots
function from thematplotlib.pyplot
module. The actual error message was:Arguments missing for parameters "nrows", "ncols"
.The function signature (https://matplotlib.org/_modules/matplotlib/pyplot.html#subplots) defines default arguments for these parameters. However, it looks like the
pyplot.pyi
file contains onlydef subplots(nrows: int, ncols: int, ...
.Environment data
Expected behaviour
(no error)
Actual behaviour
(error)
The text was updated successfully, but these errors were encountered: