Skip to content

Commit 283793d

Browse files
committed
config: improve add_repo() and add_repo_path() docstrings
1 parent 0d3da8b commit 283793d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pkgcraft/config.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cdef class Config:
3232
return self._repos
3333

3434
cdef Repo add_repo_path(self, object path, object id, int priority, bint external=True):
35-
"""Add an external repo via its file path and return its pointer."""
35+
"""Add a repo via its file path and return the Repo object."""
3636
path = str(path)
3737
id = str(id) if id is not None else path
3838

@@ -47,7 +47,7 @@ cdef class Config:
4747
return Repo.from_ptr(ptr, False)
4848

4949
def add_repo(self, repo not None, id=None, priority=0, external=False):
50-
"""Add an external repo via its file path or from a Repo object."""
50+
"""Add a repo via its file path or from a Repo object and return the Repo object."""
5151
if isinstance(repo, (str, os.PathLike)):
5252
path = str(repo)
5353
return self.add_repo_path(path, id, priority, external)

0 commit comments

Comments
 (0)