Skip to content

Commit

Permalink
chore: typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Nov 23, 2023
1 parent 7228bd9 commit da820fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mknodes/utils/superdict.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def get_section(self, *sections: str, keep_path: bool = False) -> Any:
result = serializefilters.dig(self._data, *sections, keep_path=keep_path)
return SuperDict(result) if isinstance(result, dict) else result

def serialize(self, mode: MarkupTypeStr | None) -> str: # type: ignore[return]
def serialize(self, mode: MarkupTypeStr) -> str: # type: ignore[return]
return serializefilters.serialize(self._data, mode)

def write(self, path: str | os.PathLike, mode: MarkupTypeStr | None = None):
def write(self, path: str | os.PathLike, mode: MarkupTypeStr):
text = self.serialize(mode)
pathhelpers.write_file(text, path)

Expand Down

0 comments on commit da820fa

Please sign in to comment.