Commit graph

9 commits

Author SHA1 Message Date
mathieui
4b198be977 fix: tons of type errors 2021-04-02 17:44:36 +02:00
mathieui
6f73af71cd Fix a typo in core.structs.__all__ 2021-03-13 21:13:00 +01:00
mathieui
f808f0cff9 core: move initial commands in a separate files
(improve core.py SNR)
2021-01-28 19:03:54 +01:00
mathieui
08f48b0c8b Move get_error_message to common 2021-01-28 19:03:54 +01:00
mathieui
c9e219c140 mypy: Reduce errors on muctab.py by a lot 2020-06-01 09:09:09 +02:00
mathieui
d55cc58725
yapf -ir 2017-11-12 15:03:09 +01:00
mathieui
84e59b05ff Don’t call input completion() functions inside completion methods
Use a placeholder object that can run it afterwards, so that we don’t
have side effects inside those functions.
2016-08-21 15:39:30 +02:00
Emmanuel Gil Peyrot
bfb02d64a8 Make poezio.core.struct more Cython-friendly.
Status and Command are now slotted classes instead of namedtuples,
which led to a few changes to access them with their named parameters
instead of as a tuple.

“short” being a C type, I renamed Command.short into
Command.short_desc, which is more explicit anyway.

I also renamed possible_show into POSSIBLE_SHOW, as it is a
module-level constant dict.
2016-06-11 20:49:46 +01:00
Emmanuel Gil Peyrot
332a5c2553 Move the src directory to poezio, for better cython compatibility. 2016-06-11 20:49:43 +01:00
Renamed from src/core/structs.py (Browse further)