Documentation for time.maketime() #14034
brianreinhold
started this conversation in
General
Replies: 1 comment 8 replies
-
This does what I'd expect:
Does your pylance installation know about the differences between MicroPython and Python? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I look at the documentation and I see
Why isn't the parameter placed in the method? When I try and put that Tuple in the method, pylance gives me an error saying 0 positional arguments are expected. Click on it to go to the definition and I see exactly the same thing as in the on-line documentation I quoted above. Of course, pylance can't read comments, it reads code and since there are no parameters it gives me an error.
However, when I run the program with no arguments, I get a
ValueError
saying 1 positional argument is expected. Since running is more important than trying to get rid of the red squiggles indicating an error, I put in the tuple.This is the only such inconsistency I have found (so far). There must be a reason for that. Anyone know why?
Beta Was this translation helpful? Give feedback.
All reactions