-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix overly restrictive file name types (#14)
* Fix overly restrictive file name types StrOrBytesPath encompasses str, bytes, and PathLike objects, which are valid inputs to open(). There's likely more of these that should be fixed, but this is some of them. * Update changelogs/fragments/14-StrOrBytesPath.yaml Co-authored-by: Felix Fontein <[email protected]> Co-authored-by: Felix Fontein <[email protected]>
- Loading branch information
1 parent
375d8f6
commit 3a53f08
Showing
3 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
minor_changes: | ||
- Fix overly restrictive file name type annotations. Use ``StrOrBytesPath`` | ||
type annotation instead of ``str`` for functions that accept a file name | ||
(https://github.com/ansible-community/antsibull-core/pull/14). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters