Skip to content

Commit e3e9247

Browse files
chryslewebknjaz
andcommitted
Apply suggestions from code review
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
1 parent 712d2e4 commit e3e9247

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

piptools/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def lookup_table(
272272

273273
def dedup(iterable: Iterable[_T]) -> Iterable[_T]:
274274
"""
275-
Deduplicate an iterable object like iter(set(iterable)) but
275+
Deduplicate an iterable object like ``iter(set(iterable))`` but
276276
order-preserved.
277277
"""
278278
return iter(dict.fromkeys(iterable))
@@ -544,7 +544,7 @@ def override_defaults_from_config_file(
544544
file, returning the ``pathlib.Path`` of that config file if specified or
545545
discovered.
546546
547-
:returns: :py:data:`None` if no such file is found.
547+
:returns: :py:data:`None` if no such file is found, else returns the path.
548548
549549
``pip-tools`` will use the first config file found, searching in this order:
550550
an explicitly given config file, a ``.pip-tools.toml``, a ``pyproject.toml``

0 commit comments

Comments
 (0)