File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,8 +92,6 @@ def __init__(
9292
9393 self .post_base_install : list [Callable ] = [] # type: ignore[type-arg]
9494
95- # TODO: Figure out which one of these two we'll use.. But currently we're mixing them..
96- storage ['session' ] = self
9795 storage ['installation_session' ] = self
9896
9997 self ._modules : list [str ] = []
Original file line number Diff line number Diff line change 66#
77# And Keeping this in dict ensures that variables are shared across imports.
88from pathlib import Path
9- from typing import Any
9+ from typing import TYPE_CHECKING , NotRequired , TypedDict
1010
11- storage : dict [str , Any ] = {
12- 'LOG_PATH' : Path ('/var/log/archinstall' ),
11+ if TYPE_CHECKING :
12+ from archinstall .lib .boot import Boot
13+ from archinstall .lib .installer import Installer
14+
15+
16+ class _StorageDict (TypedDict ):
17+ LOG_FILE : Path
18+ LOG_PATH : Path
19+ active_boot : NotRequired ['Boot | None' ]
20+ installation_session : NotRequired ['Installer' ]
21+
22+
23+ storage : _StorageDict = {
1324 'LOG_FILE' : Path ('install.log' ),
25+ 'LOG_PATH' : Path ('/var/log/archinstall' ),
1426}
You can’t perform that action at this time.
0 commit comments