Skip to content

Commit

Permalink
fix: Remove missing type parameter (#1570)
Browse files Browse the repository at this point in the history
Co-authored-by: KotlinIsland <[email protected]>
Co-authored-by: Ned Batchelder <[email protected]>
  • Loading branch information
3 people authored Mar 15, 2023
1 parent 4574ecf commit 021a99f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion coverage/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ class Protocol: # pylint: disable=missing-class-docstring
## File paths

# For arguments that are file paths:
FilePath = Union[str, os.PathLike]
if TYPE_CHECKING:
FilePath = Union[str, os.PathLike[str]]
else:
# PathLike < python3.9 doesn't support subscription
FilePath = Union[str, os.PathLike]
# For testing FilePath arguments
FilePathClasses = [str, pathlib.Path]
FilePathType = Union[Type[str], Type[pathlib.Path]]
Expand Down

0 comments on commit 021a99f

Please sign in to comment.