Skip to content

Commit

Permalink
chore: ignore mypy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Jul 23, 2024
1 parent 936d1e4 commit 5b547d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nitpick/blender.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,21 +315,21 @@ def missing(self) -> TBaseDoc | None:
"""Missing data."""
if not self.missing_dict:
return None
return self.doc_class(obj=(unflatten_quotes(self.missing_dict)))
return self.doc_class(obj=(unflatten_quotes(self.missing_dict))) # type: ignore[return-value]

@property
def diff(self) -> TBaseDoc | None:
"""Different data."""
if not self.diff_dict:
return None
return self.doc_class(obj=(unflatten_quotes(self.diff_dict)))
return self.doc_class(obj=(unflatten_quotes(self.diff_dict))) # type: ignore[return-value]

@property
def replace(self) -> TBaseDoc | None:
"""Data to be replaced."""
if not self.replace_dict:
return None
return self.doc_class(obj=unflatten_quotes(self.replace_dict))
return self.doc_class(obj=unflatten_quotes(self.replace_dict)) # type: ignore[return-value]

@property
def has_changes(self) -> bool:
Expand Down

0 comments on commit 5b547d2

Please sign in to comment.