Skip to content

Commit 9d752c2

Browse files
committed
Silence new pyright errors :/
1 parent 8cd8c8c commit 9d752c2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/hexdoc/core/properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class TemplateProps(StripHiddenModel, validate_assignment=True):
9898
icon: RelativePath | None = None
9999
include: PydanticOrderedSet[str]
100100

101-
render_from: PydanticOrderedSet[str] = Field(None, validate_default=False)
101+
render_from: PydanticOrderedSet[str] = Field(None, validate_default=False) # type: ignore
102102
"""List of modids to include default rendered templates from.
103103
104104
If not provided, defaults to `self.include`.

src/hexdoc/core/resource_dir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _json_schema_extra(schema: dict[str, Any]):
144144
path: RelativePath
145145
"""A path relative to `hexdoc.toml`."""
146146

147-
archive: bool = Field(default=None, validate_default=False)
147+
archive: bool = Field(default=None, validate_default=False) # type: ignore
148148
"""If true, treat this path as a zip archive (eg. a mod's `.jar` file).
149149
150150
If `path` ends with `.jar` or `.zip`, defaults to `True`.

src/hexdoc/minecraft/models/base_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class BaseMinecraftModel(HexdocModel, ABC):
4343
If both "parent" and "elements" are set, the "elements" tag overrides the "elements"
4444
tag from the previous model.
4545
"""
46-
gui_light: Literal["front", "side"] = Field(None, validate_default=False)
46+
gui_light: Literal["front", "side"] = Field(None, validate_default=False) # type: ignore
4747
"""If set to `side` (default), the model is rendered like a block.
4848
4949
If set to `front`, model is shaded like a flat item.

src/hexdoc_modonomicon/book.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Modonomicon(HexdocModel):
1515

1616
tooltip: LocalizedStr | None = None
1717
generate_book_item: bool = True
18-
model: ResourceLocation | None = Field("modonomicon:modonomicon_purple")
18+
model: ResourceLocation | None = Field("modonomicon:modonomicon_purple") # type: ignore
1919
custom_book_item: ResourceLocation | None = None
2020
creative_tab: str = "misc"
2121
default_title_color: int = 0
@@ -34,7 +34,7 @@ class Modonomicon(HexdocModel):
3434
search_button_x_offset: int = 0
3535
search_button_y_offset: int = 0
3636
read_all_button_y_offset: int = 0
37-
turn_page_sound: ResourceLocation = Field("minecraft:turn_page")
37+
turn_page_sound: ResourceLocation = Field("minecraft:turn_page") # type: ignore
3838

3939
@model_validator(mode="after")
4040
def _validate_constraints(self):

0 commit comments

Comments
 (0)