mathieui
14ae84d666
Merge branch 'ci-add-python-versions' into 'master'
...
ci: add python 3.10 and 3.11 testing
See merge request poezio/slixmpp!173
2021-12-13 20:41:00 +01:00
mathieui
0cc1095ffc
Merge branch 'asyncio-create-task' into 'master'
...
Replace asyncio.ensure_future() with asyncio.create_task()
See merge request poezio/slixmpp!169
2021-12-13 20:40:15 +01:00
mathieui
4cab1f62aa
ci: add python 3.10 and 3.11 testing
2021-12-13 20:33:05 +01:00
Emmanuel Gil Peyrot
bac6a4b2bf
Replace asyncio.ensure_future() with asyncio.create_task()
...
The latter function got introduced in Python 3.7, which is conveniently
our MSPV, so let’s use that.
2021-11-18 15:33:03 +01:00
Link Mauve
d4067275ff
Merge branch '0045-invite-JID' into 'master'
...
xep_0045: Ensure invite and decline to/from are JIDs
See merge request poezio/slixmpp!167
2021-07-17 00:33:15 +02:00
91d32bd066
xep_0045: Ensure invite and decline to/from are JIDs
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-07-17 00:21:00 +02:00
mathieui
22fa8bc4d9
Merge branch 'more-typing' into 'master'
...
Add more typing
See merge request poezio/slixmpp!166
2021-07-15 10:01:03 +02:00
mathieui
5c54806578
stanza: fix circular imports
...
ew
2021-07-05 23:05:57 +02:00
mathieui
42ca51e2b1
ci: add a mypy stage
2021-07-05 22:44:41 +02:00
mathieui
de6c19c9cd
add a mypy.ini file
2021-07-05 22:42:28 +02:00
mathieui
ca1cc73c79
xmlstream: refine type check
2021-07-05 22:42:18 +02:00
mathieui
9489586cb4
plugins: use classvar properly
2021-07-05 22:42:18 +02:00
mathieui
524c352da3
clientxmpp: cleanup some types
2021-07-05 22:42:18 +02:00
mathieui
35eafadb44
features: fix typing
...
for an annoying mypy bug
2021-07-05 22:42:18 +02:00
mathieui
af958fd1fe
stanza: fix a bunch of type errors
2021-07-05 22:42:18 +02:00
mathieui
0971bab30a
matcher: fix idsender typing
2021-07-05 22:28:50 +02:00
mathieui
ed3bb878a7
handler: fix more types
2021-07-05 22:28:38 +02:00
mathieui
f2d7e86fc7
typing: add a bunch of type ignores
...
because this is too smart for mypy and I do not want to rewrite those
things right now.
2021-07-05 22:25:38 +02:00
mathieui
fe1a325aa7
api: fix typing
2021-07-05 20:09:59 +02:00
mathieui
ea7f7d8119
fix: remove asyncio hack in slixtest
2021-07-04 16:01:48 +02:00
mathieui
3516016f32
typing: reorder jid.bare setter
2021-07-04 15:59:46 +02:00
mathieui
a57aae792d
typing: fix basexmpp type overloads
...
mypy got confused
2021-07-04 15:59:27 +02:00
mathieui
d6924fa7ad
fix: please python 3.7
2021-07-03 12:02:36 +02:00
mathieui
20e4c2c257
types: add __all__
2021-07-03 11:17:15 +02:00
mathieui
df963542c1
basexmpp/clientxmpp: refine typing
2021-07-03 11:17:15 +02:00
mathieui
7fc3c48cad
pluginsdict: add xep 0048
2021-07-03 11:17:15 +02:00
mathieui
7d4172808f
stanza: add typing
2021-07-03 11:17:15 +02:00
mathieui
95b034797f
jid: reorder properties for mypy
...
don’t ask
2021-07-03 11:17:15 +02:00
mathieui
f1b429199f
cert: add some typing
2021-07-03 11:17:15 +02:00
mathieui
db48c8f4da
xmlstream: add more types
2021-07-03 11:17:15 +02:00
mathieui
c07476e7de
setup: indicate that slixmpp contains type hints
2021-07-03 11:17:15 +02:00
mathieui
62e66e7d03
stanzabase: types
2021-07-03 11:17:15 +02:00
mathieui
79f71ec0c1
starttls: do not send back the feature we receive
...
I don’t see what a server would do with <required/>
2021-07-03 11:17:15 +02:00
mathieui
451bee0892
starttls: make the starttls element inherit from stanzabase
2021-07-03 11:17:15 +02:00
mathieui
00d38c1b29
typing: add to tostring
2021-07-03 11:17:15 +02:00
mathieui
fed55d3dda
typing: matchers and senders
...
Leftover error that I cannot fix:
* https://github.com/python/mypy/issues/708
Leftover error that I am unsure of what to do:
* xml handlers are not properly typed
(it seems like nothing in slix is using it, considering a removal
instead of adding an Union everywhere)
2021-07-03 11:17:15 +02:00
mathieui
4931e7e604
refactor: type the resolver
...
almost perfect, except for python < 3.9 making it so we can’t have nice
things.
2021-06-28 21:01:21 +02:00
mathieui
9f01d368c0
refactor: remove the now obsolete future_wrapper and asyncio-related module
2021-06-28 21:01:18 +02:00
mathieui
ef06429941
slixmpp.util: type things
...
Fix a bug in the SASL implementation as well. (some special chars would
make things crash instead of being escaped)
2021-06-28 21:00:30 +02:00
Link Mauve
b1411d8ed7
Merge branch 'request-voice' into 'master'
...
XEP-0045: Add a helper method to request voice
See merge request poezio/slixmpp!165
2021-05-21 19:05:26 +02:00
Emmanuel Gil Peyrot
889cfaa95b
XEP-0045: Add a helper method to request voice
...
This can be used in a moderated room when we are only a visitor.
2021-05-21 19:00:59 +02:00
mathieui
b7f0160c0d
Merge branch 'disconnected-stanzas-no-resend' into 'master'
...
xmlstream: do not re-send queued stanzas on each connect
See merge request poezio/slixmpp!163
2021-05-02 19:02:38 +02:00
mathieui
528553be57
xmlstream: do not re-send queued stanzas on each connect
...
each sent stanza should be purged, obviously…
2021-05-02 18:55:14 +02:00
mathieui
6f4ac7e7ce
Merge branch 'fix-slow-tasks' into 'master'
...
xmlstream: Fix slow tasks
See merge request poezio/slixmpp!162
2021-04-30 19:43:05 +02:00
mathieui
aaab58d229
itests: add a simple slow filter test
2021-04-30 19:33:23 +02:00
mathieui
0b5f6cb0a8
xmlstream: fix slow tasks scheduling
...
- wrong attribute used
- some mistakes in the slow tasks function
2021-04-30 19:27:30 +02:00
Link Mauve
027545eb71
Merge branch 'fix-docs' into 'master'
...
docs: Use the correct number for user_nick
See merge request poezio/slixmpp!161
2021-04-24 20:39:29 +02:00
Emmanuel Gil Peyrot
290d84cd0f
docs: Use the correct number for user_nick
...
Thanks Felix for noticing!
2021-04-24 20:33:04 +02:00
Link Mauve
f058e62680
Merge branch 'fix-0353' into 'master'
...
XEP-0353: Use the correct callback for <proceed/>
See merge request poezio/slixmpp!160
2021-04-24 20:25:34 +02:00
Emmanuel Gil Peyrot
104917163d
XEP-0353: Use the correct callback for <proceed/>
...
Thanks elmar for noticing!
2021-04-24 20:20:02 +02:00