Skip to content

Commit 69d4e8a

Browse files
committed
Minor fixes to internal docstrings
1 parent 2e98c79 commit 69d4e8a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

piptools/_compat/pip_compat.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,18 @@ def parse_requirements(
125125
def _filename_is_abspath(filename: str) -> bool:
126126
"""
127127
Check if a path is an absolute path, using exactly the normalization
128-
used in pip>24.3 in order to ensure consistent results.
128+
used in ``pip>=24.3`` in order to ensure consistent results.
129129
"""
130130
return os.path.abspath(filename) == filename
131131

132132

133133
def _rewrite_absolute_comes_from_location(original_comes_from: str, /) -> str:
134134
"""
135-
This is the rewrite rule used when `-r` or `-c` appears in `comes_from` data
136-
with an absolute path.
135+
This is the rewrite rule used when ``-r`` or ``-c`` appears in
136+
``comes_from`` data with an absolute path.
137137
138-
The `-r` or `-c` qualifier is retained, and the path is relativized with
139-
respect to the CWD.
138+
The ``-r`` or ``-c`` qualifier is retained, and the path is relativized
139+
with respect to the CWD.
140140
"""
141141
# require `-r` or `-c` as the source
142142
if not original_comes_from.startswith(("-r ", "-c ")):

0 commit comments

Comments
 (0)