mirror of
https://github.com/rendercv/rendercv.git
synced 2026-02-07 03:51:26 -05:00
Ignore some ty errors
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user