Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions unidiff/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class PatchedFile(list):
def __init__(self, patch_info=None, source='', target='',
source_timestamp=None, target_timestamp=None,
is_binary_file=False):
# type: (Optional[PatchInfo], str, str, Optional[str], Optional[str], bool, bool) -> None
# type: (Optional[PatchInfo], str, str, Optional[str], Optional[str], bool) -> None
super(PatchedFile, self).__init__()
self.patch_info = patch_info
self.source_file = source
Expand Down Expand Up @@ -602,7 +602,7 @@ def _parse(self, diff, encoding, metadata_only):

@classmethod
def from_filename(cls, filename, encoding=DEFAULT_ENCODING, errors=None, newline=None):
# type: (str, str, Optional[str]) -> PatchSet
# type: (str, str, Optional[str], Optional[str]) -> PatchSet
"""Return a PatchSet instance given a diff filename."""
with open_file(filename, 'r', encoding=encoding, errors=errors, newline=newline) as f:
instance = cls(f)
Expand Down