Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Dec 12, 2024
1 parent 2fa33bd commit 98e42ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nicegui/timer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
import time
from contextlib import nullcontext
from typing import Any, Awaitable, Callable, ContextManager
from typing import Any, Awaitable, Callable, ContextManager, Optional

from . import background_tasks, core
from .awaitable_response import AwaitableResponse
Expand Down Expand Up @@ -33,7 +33,7 @@ def __init__(self,
"""
super().__init__()
self.interval = interval
self.callback = callback
self.callback: Optional[Callable[..., Any]] = callback
self.active = active
self._is_canceled = False
self._immediate = immediate
Expand Down

0 comments on commit 98e42ad

Please sign in to comment.