Skip to content
Myr

Clarify behavior of resolve_path

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

'resolve_path' suggests, that it will also call os.path.expanduser(), while in fact it does not. Avoid confusion by stating this in the docstring of :class:`Path`.

authored by Felix Bayer · committed by buckket · parent fa2d870 · Browse files · 1 file+3 added−1 removed
This commit

State

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

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:click/types.py+3 added-1 removed
356 unmodified lines
357 :param writable: if true, a writable check is performed.358 :param readable: if true, a readable check is performed.359 :param resolve_path: if this is true, then the path is fully resolved360 before the value is passed onwards. This means361 that it's absolute and symlinks are resolved.361 that it's absolute and symlinks are resolved. It362 will not expand a tilde-prefix, as this is363 supposed to be done by the shell only.364 :param allow_dash: If this is set to `True`, a single dash to indicate365 standard streams is permitted.366 :param type: optionally a string type that should be used to367 represent the path. The default is `None` which
185 unmodified lines