From e3e92476330f156ca308765186e72fbf6cf269e3 Mon Sep 17 00:00:00 2001 From: chrysle <96722107+chrysle@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:22:00 +0200 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) --- piptools/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piptools/utils.py b/piptools/utils.py index 8073f5d7..b501fac0 100644 --- a/piptools/utils.py +++ b/piptools/utils.py @@ -272,7 +272,7 @@ def lookup_table( def dedup(iterable: Iterable[_T]) -> Iterable[_T]: """ - Deduplicate an iterable object like iter(set(iterable)) but + Deduplicate an iterable object like ``iter(set(iterable))`` but order-preserved. """ return iter(dict.fromkeys(iterable)) @@ -544,7 +544,7 @@ def override_defaults_from_config_file( file, returning the ``pathlib.Path`` of that config file if specified or discovered. - :returns: :py:data:`None` if no such file is found. + :returns: :py:data:`None` if no such file is found, else returns the path. ``pip-tools`` will use the first config file found, searching in this order: an explicitly given config file, a ``.pip-tools.toml``, a ``pyproject.toml``