summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicoco <nicoco@nicoco.fr>2022-08-29 00:12:40 +0200
committernicoco <nicoco@nicoco.fr>2022-08-29 00:20:36 +0200
commit62701bc56276a85ba4ad22ddbec8acc0112116f9 (patch)
tree03dbafe6d9ac2414387387ec210fe38711c9fa68
parentf5cb9fe66b010793e087c8b27176b1d227dd4ba2 (diff)
downloadslixmpp-62701bc56276a85ba4ad22ddbec8acc0112116f9.tar.gz
slixmpp-62701bc56276a85ba4ad22ddbec8acc0112116f9.tar.bz2
slixmpp-62701bc56276a85ba4ad22ddbec8acc0112116f9.tar.xz
slixmpp-62701bc56276a85ba4ad22ddbec8acc0112116f9.zip
xmlstream: ignore task type (mypy)
This is not satisfying, but having gitlab pipelines running would be nice, wouldn't it?
-rw-r--r--slixmpp/xmlstream/xmlstream.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py
index 18464ccd..19c4ddcc 100644
--- a/slixmpp/xmlstream/xmlstream.py
+++ b/slixmpp/xmlstream/xmlstream.py
@@ -574,7 +574,7 @@ class XMLStream(asyncio.BaseProtocol):
stream=self,
top_level=True,
open_only=True))
- self.start_stream_handler(self.xml_root)
+ self.start_stream_handler(self.xml_root) # type:ignore
self.xml_depth += 1
if event == 'end':
self.xml_depth -= 1
@@ -1267,7 +1267,7 @@ class XMLStream(asyncio.BaseProtocol):
already_run_filters.add(filter)
if iscoroutinefunction(filter):
filter = cast(AsyncFilter, filter)
- task = asyncio.create_task(filter(data))
+ task = asyncio.create_task(filter(data)) # type:ignore
completed, pending = await wait(
{task},
timeout=1,