diff --git a/.cruft.json b/.cruft.json index 6f9a9b7..558eecb 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "git@github.com:bl-sdk/common_dotfiles.git", - "commit": "3d7189e61172cb95877261df8313ae595fe6c02d", + "commit": "cee5c9dbf5b95f57bb636e5138171aa6a4964cf1", "checkout": null, "context": { "cookiecutter": { @@ -16,7 +16,7 @@ "include_cpp": false, "include_py": true, "_template": "git@github.com:bl-sdk/common_dotfiles.git", - "_commit": "3d7189e61172cb95877261df8313ae595fe6c02d" + "_commit": "cee5c9dbf5b95f57bb636e5138171aa6a4964cf1" } }, "directory": null diff --git a/Readme.md b/Readme.md index c1b6a91..7afe8b7 100644 --- a/Readme.md +++ b/Readme.md @@ -20,9 +20,12 @@ a message as the second (both positionally), and show them in a temporary messag # Changelog +### v1.6 +- Linting fixes. + ### v1.5 -- Support host-only coop support value -- Linting fixes +- Support host-only coop support value. +- Linting fixes. ### v1.4 - Improved suggestions when trying to bind a key by name, and misspelling it. diff --git a/__init__.py b/__init__.py index 0325246..886a2d4 100644 --- a/__init__.py +++ b/__init__.py @@ -12,7 +12,7 @@ "__version_info__", ) -__version_info__: tuple[int, int] = (1, 5) +__version_info__: tuple[int, int] = (1, 6) __version__: str = f"{__version_info__[0]}.{__version_info__[1]}" __author__: str = "bl-sdk" diff --git a/screens/home.py b/screens/home.py index 6a49613..1dd2d4c 100644 --- a/screens/home.py +++ b/screens/home.py @@ -19,7 +19,7 @@ class HomeScreen(AbstractScreen): name: Literal["Mods"] = "Mods" # pyright: ignore[reportIncompatibleVariableOverride] - drawn_mod_list: list[Mod] = field(default_factory=list, init=False) + drawn_mod_list: list[Mod] = field(default_factory=list[Mod], init=False) def draw(self) -> None: # noqa: D102 draw_stack_header() diff --git a/screens/mod.py b/screens/mod.py index a6fee71..64bd803 100644 --- a/screens/mod.py +++ b/screens/mod.py @@ -36,7 +36,7 @@ class OptionListScreen(AbstractScreen): mod: Mod - drawn_options: list[BaseOption] = field(default_factory=list, init=False) + drawn_options: list[BaseOption] = field(default_factory=list[BaseOption], init=False) @staticmethod def any_option_visible(options: Sequence[BaseOption]) -> bool: @@ -94,7 +94,7 @@ def draw_options_list( stack.pop() case ValueOption(): - j_option: ValueOption[JSON] = option + j_option: ValueOption[JSON] = option # pyright: ignore[reportUnknownVariableType] draw( f"[{drawn_idx}] {option.display_name} ({get_option_value_str(j_option)})",