plugins: also update the admin plugin to reflect coroutine changes

8 jobs for main in 4 minutes and 49 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Lint
failed #31559
allowed to fail
mypyc

00:00:37

failed #31557
allowed to fail
pylint-latest

00:02:36

failed #31558
allowed to fail
pylint-plugins

00:02:14

passed #31556
security-check

00:00:21

 
  Test
passed #31560
pytest-3.7

00:00:38

passed #31561
pytest-latest

00:00:50

 
  Build
passed #31562
www
build-doc

00:01:20

passed #31563
build-ubuntu

00:00:15

 
Name Stage Failure
failed
pylint-latest Lint
poezio/ui/types.py:104:23: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:105:29: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:108:23: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:109:29: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:110:22: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:112:30: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:114:22: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
mypyc Lint
poezio/plugin_e2ee.py:270: error: Argument 2 to "isinstance" has incompatible type "Tuple[Union[MucTab, DynamicConversationTab, StaticConversationTab, PrivateTab]]"; expected "Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]"
poezio/plugin_e2ee.py:329: error: Unexpected keyword argument "passthrough" for "_encrypt" of "E2EEPlugin"
poezio/plugin_e2ee.py:374: error: Item "MucTab" of "Union[MucTab, DynamicConversationTab, StaticConversationTab, PrivateTab]" has no attribute "parent_muc"
poezio/plugin_e2ee.py:374: error: Item "DynamicConversationTab" of "Union[MucTab, DynamicConversationTab, StaticConversationTab, PrivateTab]" has no attribute "parent_muc"
poezio/plugin_e2ee.py:374: error: Item "StaticConversationTab" of "Union[MucTab, DynamicConversationTab, StaticConversationTab, PrivateTab]" has no attribute "parent_muc"
poezio/plugin_e2ee.py:389: note: "_encrypt" of "E2EEPlugin" defined here
poezio/plugin_e2ee.py:499: error: Incompatible return value type (got "Union[str, int, float, bool]", expected "str")
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
pylint-plugins Lint
$ pylint -E plugins
************* Module plugins.upload
plugins/upload.py:53:40: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
************* Module plugins.lastlog
plugins/lastlog.py:27:18: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
************* Module plugins.untrackme
plugins/untrackme.py:17:11: E1136: Value 'Union' is unsubscriptable (unsubscriptable-object)
Cleaning up file based variables
ERROR: Job failed: exit code 1