Librem 5?
Guess I'll order a USB adapter to be safe, and report back if it works without.
Librem 5?
Type listener.py
Yes, I imported it only when type checking, otherwise we'd likely have a circular import.
Dreamsorcerer
pushed to dreamsorcerer-patch-2 at Dreamsorcerer/simplematrixbotlib
2024年05月10日 22:11:36 +02:00
801eca7e46
Merge branch 'master' into dreamsorcerer-patch-2
d62a451cc1
Reexport for type checkers (#67)
0cf05f9624
Type bot.py (#69)
Reexport for type checkers
Already removed the reexport here. I guess it's because the modules are importing from the top-level as well, which is likely to lead to circular imports if not paying attention. So, for v3, I'd...
Dreamsorcerer
pushed to dreamsorcerer-patch-2 at Dreamsorcerer/simplematrixbotlib
2024年05月07日 16:38:16 +02:00
9129c6d5c1
Update simplematrixbotlib/config.py
Dreamsorcerer
pushed to dreamsorcerer-patch-1 at Dreamsorcerer/simplematrixbotlib
2024年05月06日 19:01:17 +02:00
ece818ee2a
Update simplematrixbotlib/__init__.py
Reexport for type checkers
I'd argue that it should be in this file at all then..
Fix Any error on config types
Same response. Here we can add a TODO if you like. We can stop using strings once Python 3.8 is no longer supported.
Type listener.py
That could break the type annotation at runtime.
>>> from __future__ import annotations
>>> def foo(a: Bot):
... ...
...
>>> get_type_hints(foo)
Traceback (most recent call last):
...
Dreamsorcerer
pushed to dreamsorcerer-patch-2 at Dreamsorcerer/simplematrixbotlib
2024年05月06日 00:21:53 +02:00
0c6f9fa132
Update simplematrixbotlib/config.py
Type listener.py
Dreamsorcerer
pushed to dreamsorcerer-patch-4 at Dreamsorcerer/simplematrixbotlib
2024年05月06日 00:20:05 +02:00
7279060dd9
Type listener.py
Dreamsorcerer
created branch dreamsorcerer-patch-4 in Dreamsorcerer/simplematrixbotlib
2024年05月06日 00:20:05 +02:00
Type bot.py
Dreamsorcerer
pushed to dreamsorcerer-patch-3 at Dreamsorcerer/simplematrixbotlib
2024年05月05日 23:59:09 +02:00
27eca0fb60
Type bot.py
Dreamsorcerer
created branch dreamsorcerer-patch-3 in Dreamsorcerer/simplematrixbotlib
2024年05月05日 23:59:09 +02:00
Fix Any error on config types
Dreamsorcerer
pushed to dreamsorcerer-patch-2 at Dreamsorcerer/simplematrixbotlib
2024年05月05日 23:55:46 +02:00
4c49b61c6c
Fix Any error on config types
Dreamsorcerer
created branch dreamsorcerer-patch-2 in Dreamsorcerer/simplematrixbotlib
2024年05月05日 23:55:46 +02:00