Skip to content

Commit 52f7b09

Browse files
committed
Update plette to version 2.1.0
This fixes breakage on files which use scripts callable. #6173 Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
1 parent 0618fab commit 52f7b09

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pipenv/vendor/plette/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Lockfile", "Pipfile",
44
]
55

6-
__version__ = '2.0.2'
6+
__version__ = '2.1.0'
77

88
from .lockfiles import Lockfile
99
from .pipfiles import Pipfile

pipenv/vendor/plette/models/scripts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Script(DataModel):
1010
This always works in POSIX mode, even on Windows.
1111
"""
1212
__OPTIONAL__ = {
13-
"script": (str,list)
13+
"script": (str, list, dict)
1414
}
1515

1616
def __init__(self, data):
@@ -25,7 +25,7 @@ def validate(cls, data):
2525
raise DataValidationError("Script cannot be empty")
2626
for k, types in cls.__OPTIONAL__.items():
2727
if not isinstance(data, types):
28-
raise DataValidationError(f"Invalid type for field {t}: {type(data[t])}")
28+
raise DataValidationError(f"Invalid type for {k}: {type(data)}")
2929
def __repr__(self):
3030
return "Script({0!r})".format(self._parts)
3131

pipenv/vendor/vendor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packaging==24.0
77
pexpect==4.9.0
88
pipdeptree==2.18.1
99
zipp==3.18.1
10-
plette==2.0.2
10+
plette==2.1.0
1111
ptyprocess==0.7.0
1212
python-dotenv==1.0.1
1313
pythonfinder==2.1.0

0 commit comments

Comments
 (0)