More typing work

This commit is contained in:
Kovid Goyal
2020-03-04 06:10:57 +05:30
parent 5730ce5f53
commit a4cc10c41b
12 changed files with 340 additions and 65 deletions

View File

@@ -2,6 +2,7 @@
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
from typing import Mapping
from .constants import is_macos, logo_png_file
@@ -25,8 +26,8 @@ else:
from .fast_data_types import dbus_send_notification
from .constants import get_boss
alloc_map = {}
identifier_map = {}
alloc_map: Mapping[int, str] = {}
identifier_map: Mapping[str, int] = {}
def dbus_notification_created(alloc_id, notification_id):
identifier = alloc_map.pop(alloc_id, None)