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

[BUG] Documentation and code disagree about the type of log_time_format #3256

Open
2 tasks done
TobiX opened this issue Jan 10, 2024 · 1 comment
Open
2 tasks done

Comments

@TobiX
Copy link

TobiX commented Jan 10, 2024

Describe the bug

In the docstring, the type for log_time_format is Union[str, TimeFormatterCallable], see:

log_time_format (Union[str, TimeFormatterCallable], optional): If ``log_time`` is enabled, either string for strftime or callable that formats the time. Defaults to "[%x %X] ".

But in the code, the actual type is Union[str, FormatTimeCallable]:

log_time_format: Union[str, FormatTimeCallable] = "[%x %X]",

These should probably be the same.

Platform

Does not apply.

Copy link

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

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

No branches or pull requests

1 participant