7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-26 00:42:35 +00:00
tutor/tutor/commands
Régis Behmo 336cb79fa8 refactor: better config type checking
I stumbled upon a bug that should have been detected by the type
checking. Turns out, considering that config is of type Dict[str, Any]
means that we can use just any method on all config values -- which is
terrible. I discovered this after I set `config["PLUGINS"] = None`:
this triggered a crash when I enabled a plugin.
We resolve this by making the Config type more explicit. We also take
the opportunity to remove a few cast statements.
2021-04-18 18:02:02 +02:00
..
__init__.py Move command modules to dedicated directory 2019-05-29 09:53:54 +02:00
android.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
cli.py refactor: add type annotations 2021-03-15 21:46:55 +01:00
compose.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
config.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
context.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
dev.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
images.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
k8s.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
local.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
plugins.py refactor: add type annotations 2021-03-15 21:46:55 +01:00
ui.py refactor: add type annotations 2021-03-15 21:46:55 +01:00
webui.py refactor: better config type checking 2021-04-18 18:02:02 +02:00