Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
  • Loading branch information
chrysle and webknjaz committed Dec 16, 2024
1 parent 712d2e4 commit e3e9247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions piptools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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``
Expand Down

0 comments on commit e3e9247

Please sign in to comment.