explicit typing of the source event interface

This commit is contained in:
Jakob Ketterl
2020-08-30 23:47:04 +02:00
parent 805039ec02
commit 9be0664e14
5 changed files with 23 additions and 10 deletions

View File

@ -1,5 +1,5 @@
from datetime import datetime, timezone, timedelta
from owrx.source import SdrSource
from owrx.source import SdrSource, SdrSourceEventClient
from owrx.config import Config
import threading
import math
@ -204,7 +204,7 @@ class DaylightSchedule(TimerangeSchedule):
return entries
class ServiceScheduler(object):
class ServiceScheduler(SdrSourceEventClient):
def __init__(self, source):
self.source = source
self.selectionTimer = None