Ignore some ty errors

This commit is contained in:
Sina Atalay
2026-02-06 01:03:56 +03:00
parent 489043d76f
commit 414cbba6d4
4 changed files with 5 additions and 5 deletions

View File

@@ -24,4 +24,4 @@ repos:
entry: ty check src tests
pass_filenames: false
args: [--python=.venv/]
additional_dependencies: [ty]
additional_dependencies: ["ty>=0.0.15"]

View File

@@ -126,7 +126,7 @@ class Cv(BaseModelWithExtraKeys):
"""
return get_rendercv_sections(self.sections)
@pydantic.model_validator(mode="wrap")
@pydantic.model_validator(mode="wrap") # ty: ignore
@classmethod
def capture_input_order(
cls, data: Any, handler: pydantic.ModelWrapValidatorHandler[Self]

View File

@@ -74,13 +74,13 @@ def update_value_by_location[T: dict | list](
new_value = value
else:
new_value = update_value_by_location(
dict_or_list[first_key],
dict_or_list[first_key], # ty: ignore
remaining_key,
value,
full_key=full_key,
)
dict_or_list[first_key] = new_value
dict_or_list[first_key] = new_value # ty: ignore
return dict_or_list

View File

@@ -171,7 +171,7 @@ class TestCliCommandRender:
):
cli_command_render(
input_file_name=input_file,
**{**default_arguments, "watch": True},
**{**default_arguments, "watch": True}, # ty: ignore
)
mock_watcher.assert_called_once()