Skip to content

Commit 6410c1d

Browse files
committed
Add a type annotation
1 parent 5039801 commit 6410c1d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

inbox/mailsync/backends/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ def _run_impl(self): # type: ignore[no-untyped-def]
9898
def sync(self) -> Never:
9999
raise NotImplementedError
100100

101+
def stop(self) -> None:
102+
raise NotImplementedError
103+
101104
def _cleanup(self) -> None:
102105
with session_scope(self.namespace_id) as mailsync_db_session:
103106
for x in self.folder_monitors: # type: ignore[attr-defined]

inbox/mailsync/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def __init__( # type: ignore[no-untyped-def]
104104
)
105105

106106
self.syncing_accounts = set() # type: ignore[var-annotated]
107-
self.email_sync_monitors = {} # type: ignore[var-annotated]
107+
self.email_sync_monitors: dict[int, BaseMailSyncMonitor] = {}
108108
self.contact_sync_monitors = {} # type: ignore[var-annotated]
109109
self.event_sync_monitors = {} # type: ignore[var-annotated]
110110
# Randomize the poll_interval so we maintain at least a little fairness

0 commit comments

Comments
 (0)