Skip to content

Commit 7a0afd0

Browse files
committed
Fix lint errors for users
1 parent e1defc3 commit 7a0afd0

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "micrologai"
7-
version = "1.5.1"
7+
version = "1.5.2"
88
description = "Microlog - A lightweight logging and tracing library for Python applications"
99
readme = "README.md"
1010
requires-python = ">=3.11"

src/microlog/ltk/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
from ltk.pubsub import *
1010
from ltk.logger import *
1111

12+
import js
13+
1214
(
1315
ltk.Link("https://github.com/pyscript/ltk", "built with LTK")
1416
.addClass("ltk-built-with")

src/microlog/ltk/jquery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def __exit__(self, *args):
154154
window.URL.revokeObjectURL(self.url)
155155

156156

157-
def schedule(python_function, key, timeout_seconds=0):
157+
def schedule(python_function, key, timeout_seconds=0.0):
158158
"""
159159
Schedules the given Python function to run after the given timeout.
160160
If a function with the same key is already scheduled, it will be cancelled
@@ -170,7 +170,7 @@ def schedule(python_function, key, timeout_seconds=0):
170170
timers[key] = window.setTimeout(proxy(python_function), int(timeout_seconds * 1000))
171171

172172

173-
def repeat(python_function, key, timeout_seconds=1):
173+
def repeat(python_function, key, timeout_seconds=1.0):
174174
"""
175175
Schedules the given Python function to run every given timeout in seconds.
176176
If a function with the same key is already scheduled, it will be cancelled

0 commit comments

Comments
 (0)