Skip to content

Commit

Permalink
Allow source_directory to be a pathlib.Path (#6)
Browse files Browse the repository at this point in the history
* Allow source_directory to be a pathlib.Path.

* Improve formulation.

Co-authored-by: Maxwell G <[email protected]>

* Fix markup.

---------

Co-authored-by: Maxwell G <[email protected]>
  • Loading branch information
felixfontein and gotmax23 authored Sep 27, 2024
1 parent 47c8670 commit 877c3af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/6-collection-copier-strpath.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "``CollectionCopier``'s ``source_directory`` argument now accepts ``pathlib.Path`` objects in addition to ``str``\ s (https://github.com/ansible-community/antsibull-fileutils/pull/6)."
2 changes: 1 addition & 1 deletion src/antsibull_fileutils/copier.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class CollectionCopier:
def __init__(
self,
*,
source_directory: str,
source_directory: StrPath,
namespace: str,
name: str,
copier: Copier,
Expand Down

0 comments on commit 877c3af

Please sign in to comment.