Skip to content

Commit

Permalink
Path type ctor str|PathLike
Browse files Browse the repository at this point in the history
Remove bytes from allowed types for pathlib Path ctor.
  • Loading branch information
yaythomas committed Oct 5, 2022
1 parent 228d09c commit c6d24e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypyr/venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
logger = logging.getLogger(__name__)

CORE_VENV_DEPS = ('pip', 'setuptools')
SIMPLE_INPUT_TYPE = (str, bytes, PathLike)
SIMPLE_INPUT_TYPE = (str, PathLike)
IS_BEFORE_PY_3_9 = sys.version_info < (3, 9)


Expand All @@ -34,7 +34,7 @@ class VenvCreator():
You cannot set `pip` or `upgrade_pip` when `with_pip` is False."""

def __init__(self,
path: str | bytes | PathLike,
path: str | PathLike,
pip_extras: str = None,
system_site_packages: bool = False,
clear: bool = False,
Expand Down

0 comments on commit c6d24e9

Please sign in to comment.