Skip to content
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

time.mktime() does expect one positional argument #771

Open
maxi07 opened this issue Dec 29, 2024 · 1 comment
Open

time.mktime() does expect one positional argument #771

maxi07 opened this issue Dec 29, 2024 · 1 comment
Labels
stdlib micropython version of stdlib

Comments

@maxi07
Copy link

maxi07 commented Dec 29, 2024

The function time.mktime actually does expect one positional argument:

>>> import time
>>> time.localtime()
(2024, 12, 29, 17, 33, 32, 6, 364)
>>> time.mktime()
Traceback (most recent call last):
  File "<stdin>", line 7, in <module>
  File "<string>", line 1, in <module>
TypeError: function takes 1 positional arguments but 0 were given
Exception occured

but the stub expects zero arguments.

@Josverl
Copy link
Owner

Josverl commented Dec 30, 2024

Thanks for the report, ill add a test for this one as well.

Im working on fixing this and many other mismatches and emissions, and keeping the docs easy to maintain and readable by humans and typecheckers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib micropython version of stdlib
Projects
None yet
Development

No branches or pull requests

2 participants