Skip to content

Commit c3056b9

Browse files
committed
Add typing override decorator
1 parent e35136e commit c3056b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/recceiver/cfstore.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import time
88
from collections import defaultdict
99
from dataclasses import dataclass, field
10-
from typing import Any, Callable, Dict, List, Optional, Set, Tuple
10+
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, override
1111

1212
from channelfinder import ChannelFinderClient
1313
from requests import ConnectionError, RequestException
@@ -256,6 +256,7 @@ def __init__(self, name: Optional[str], conf: ConfigAdapter):
256256
self.current_time: Callable[[Optional[str]], str] = get_current_time
257257
self.lock: DeferredLock = DeferredLock()
258258

259+
@override
259260
def startService(self):
260261
"""Start the CFProcessor service.
261262
@@ -343,6 +344,7 @@ def _start_service_with_lock(self):
343344
if self.cf_config.clean_on_start:
344345
self.clean_service()
345346

347+
@override
346348
def stopService(self):
347349
"""Stop the CFProcessor service.
348350

0 commit comments

Comments
 (0)