Skip to content
Myr

restore Path param order

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent a66119a · Browse files · 2 files+5 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−2 removed

  • other:+5 added−2 removed

2 files+5 added−2 removed

modified:src/click/types.py+2 added-2 removed
788 unmodified lines
789 self,790 exists: bool = False,791 file_okay: bool = True,792 dir_okay: bool = True,793 readable: bool = True,793 writable: bool = False,795 executable: bool = False,794 readable: bool = True,795 resolve_path: bool = False,796 allow_dash: bool = False,797 path_type: t.Optional[t.Type] = None,798 executable: bool = False,799 ):800 self.exists = exists801 self.file_okay = file_okay802 self.dir_okay = dir_okay
271 unmodified lines
modified:CHANGES.rst+3 added
5 unmodified lines
6Unreleased78- Fix error message for readable path check that was mixed up with the9 executable check. :pr:`2236`10- Restore parameter order for ``Path``, placing the ``executable``11 parameter at the end. It is recommended to use keyword arguments12 instead of positional arguments. :issue:`2235`131415Version 8.1.116-------------
1016 unmodified lines