Skip to content

Commit 68afeed

Browse files
Fix docs for log.set_labels. (#61)
Closes microbit-foundation/python-editor-v3#920 I'll batch a Crowdin update tomorrow.
1 parent ab8331e commit 68afeed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lang/en/typeshed/stdlib/log.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ DAYS = 864000
1818
"""Days timestamp format."""
1919

2020
def set_labels(
21-
*args: str, timestamp: Optional[Literal[1, 10, 36000, 864000]] = MILLISECONDS
21+
*args: str, timestamp: Optional[Literal[1, 10, 36000, 864000]] = SECONDS
2222
) -> None:
2323
"""Set up the log file header.
2424
25-
Example: ``log.set_labels('x', 'y', 'z', log.SECONDS)``
25+
Example: ``log.set_labels('x', 'y', 'z', timestamp=log.MINUTES)``
2626
2727
Each call to this function with positional arguments will generate a new
2828
header entry into the log file.

0 commit comments

Comments
 (0)