Skip to content

Commit

Permalink
Type annotation in LibMambaSolver (#586)
Browse files Browse the repository at this point in the history
Co-authored-by: jaimergp <jaimergp@users.noreply.github.com>
  • Loading branch information
dholth and jaimergp authored Dec 15, 2024
1 parent 703a793 commit 5836e96
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_libmamba_solver/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def user_agent() -> str:

def __init__(
self,
prefix: os.PathLike,
prefix: os.PathLike | str,
channels: Iterable[Channel | str],
subdirs: Iterable[str] = (),
specs_to_add: Iterable[MatchSpec | str] = (),
Expand All @@ -104,7 +104,7 @@ def __init__(
command = "remove"

super().__init__(
prefix,
os.fspath(prefix),
channels,
subdirs=subdirs,
specs_to_add=specs_to_add,
Expand Down
19 changes: 19 additions & 0 deletions news/accept-pathlike
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* Accept both `pathlib.Path()` and `str` for `LibMambaSolver()` prefix. (#586)

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>

0 comments on commit 5836e96

Please sign in to comment.