basic python 3.9 support

This commit is contained in:
Devaev Maxim
2020-12-02 14:37:48 +03:00
parent 9dbf7f1d0b
commit 2b064a3bee
9 changed files with 10 additions and 7 deletions

View File

@@ -226,7 +226,7 @@ class KvmdServer(HttpServer): # pylint: disable=too-many-arguments,too-many-ins
if name not in current_params:
assert exc_cls is not None, name
raise exc_cls()
value = validator(value)
value = validator(value) # type: ignore
if current_params[name] != value:
self.__new_streamer_params[name] = value
await self.__streamer_notifier.notify()