Skip to content

Commit

Permalink
fix: correctly parameterize callback list
Browse files Browse the repository at this point in the history
  • Loading branch information
lhw committed Jun 2, 2024
1 parent 3f94985 commit b417b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiocloudweather/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import logging
import time
from typing import Callable
from typing import Any, Callable, Coroutine
from copy import deepcopy
from dataclasses import fields

Expand Down Expand Up @@ -36,7 +36,7 @@ def __init__(self, port: int = _CLOUDWEATHER_LISTEN_PORT):
# internal data
self.last_values: dict[str, WeatherStation] = {}
self.last_updates: dict[str, float] = {}
self.new_dataset_cb: list[Callable[[WeatherStation], None]] = []
self.new_dataset_cb: list[Callable[[WeatherStation], Coroutine[Any, Any, Any]]] = []

# storage
self.stations: list[str] = []
Expand Down

0 comments on commit b417b10

Please sign in to comment.