File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33 "Lockfile" , "Pipfile" ,
44]
55
6- __version__ = '2.0.2 '
6+ __version__ = '2.1.0 '
77
88from .lockfiles import Lockfile
99from .pipfiles import Pipfile
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ packaging==24.0
77pexpect==4.9.0
88pipdeptree==2.18.1
99 zipp==3.18.1
10- plette==2.0.2
10+ plette==2.1.0
1111ptyprocess==0.7.0
1212python-dotenv==1.0.1
1313pythonfinder==2.1.0
You can’t perform that action at this time.
0 commit comments