Skip to content
Myr

Merge branch '8.1.x'

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 · parents c1d0729, 030f53c · Browse files · 2 files+15 added−3 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+15 added−3 removed

  • other:+15 added−3 removed

2 files+15 added−3 removed

modified:src/click/types.py+3 added-3 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
80 unmodified lines
883 )884885 if self.readable and not os.access(rv, os.R_OK):886 self.fail(887 _("{name} {filename!r} is not executable.").format(887 _("{name} {filename!r} is not readable.").format(888 name=self.name.title(), filename=os.fsdecode(value)889 ),890 param,891 ctx,
182 unmodified lines
modified:CHANGES.rst+12 added
4 unmodified lines
56Unreleased789Version 8.1.210-------------1112Released 2022-03-311314- Fix error message for readable path check that was mixed up with the15 executable check. :pr:`2236`16- Restore parameter order for ``Path``, placing the ``executable``17 parameter at the end. It is recommended to use keyword arguments18 instead of positional arguments. :issue:`2235`192021Version 8.1.122-------------2324Released 2022-03-30
1014 unmodified lines