Skip to content

Commit 135892d

Browse files
authored
Merge pull request #3 from apple1417/master
pyright linting fixups
2 parents 60baff2 + 65e955f commit 135892d

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "[email protected]:bl-sdk/common_dotfiles.git",
3-
"commit": "3d7189e61172cb95877261df8313ae595fe6c02d",
3+
"commit": "cee5c9dbf5b95f57bb636e5138171aa6a4964cf1",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -16,7 +16,7 @@
1616
"include_cpp": false,
1717
"include_py": true,
1818
"_template": "[email protected]:bl-sdk/common_dotfiles.git",
19-
"_commit": "3d7189e61172cb95877261df8313ae595fe6c02d"
19+
"_commit": "cee5c9dbf5b95f57bb636e5138171aa6a4964cf1"
2020
}
2121
},
2222
"directory": null

Readme.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ a message as the second (both positionally), and show them in a temporary messag
2020

2121
# Changelog
2222

23+
### v1.6
24+
- Linting fixes.
25+
2326
### v1.5
24-
- Support host-only coop support value
25-
- Linting fixes
27+
- Support host-only coop support value.
28+
- Linting fixes.
2629

2730
### v1.4
2831
- Improved suggestions when trying to bind a key by name, and misspelling it.

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"__version_info__",
1313
)
1414

15-
__version_info__: tuple[int, int] = (1, 5)
15+
__version_info__: tuple[int, int] = (1, 6)
1616
__version__: str = f"{__version_info__[0]}.{__version_info__[1]}"
1717
__author__: str = "bl-sdk"
1818

screens/home.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class HomeScreen(AbstractScreen):
2020
name: Literal["Mods"] = "Mods" # pyright: ignore[reportIncompatibleVariableOverride]
2121

22-
drawn_mod_list: list[Mod] = field(default_factory=list, init=False)
22+
drawn_mod_list: list[Mod] = field(default_factory=list[Mod], init=False)
2323

2424
def draw(self) -> None: # noqa: D102
2525
draw_stack_header()

screens/mod.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
class OptionListScreen(AbstractScreen):
3737
mod: Mod
3838

39-
drawn_options: list[BaseOption] = field(default_factory=list, init=False)
39+
drawn_options: list[BaseOption] = field(default_factory=list[BaseOption], init=False)
4040

4141
@staticmethod
4242
def any_option_visible(options: Sequence[BaseOption]) -> bool:
@@ -94,7 +94,7 @@ def draw_options_list(
9494
stack.pop()
9595

9696
case ValueOption():
97-
j_option: ValueOption[JSON] = option
97+
j_option: ValueOption[JSON] = option # pyright: ignore[reportUnknownVariableType]
9898

9999
draw(
100100
f"[{drawn_idx}] {option.display_name} ({get_option_value_str(j_option)})",

0 commit comments

Comments
 (0)