Skip to content

Commit 52e2a55

Browse files
committed
renamed local param v to fit actual meaning
1 parent ecb4b4b commit 52e2a55

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

ted_sws/notice_packager/model/metadata.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
REVISION = "0"
5757

5858

59-
def validate_mets_type(v):
60-
if v not in METS_ACCEPTED_TYPES:
61-
raise ValueError('No such METS type: %s' % v)
59+
def validate_mets_type(mets_type):
60+
if mets_type not in METS_ACCEPTED_TYPES:
61+
raise ValueError('No such METS type: %s' % mets_type)
6262

6363

6464
class NoticeMetadata(Metadata):
@@ -96,9 +96,9 @@ class MetsMetadata(Metadata):
9696
notice_file_checksum_type: Optional[str] = METS_NOTICE_FILE_CHECKSUM_TYPE
9797

9898
@validator('type')
99-
def validate_notice_action_type(cls, v):
100-
validate_mets_type(v)
101-
return v
99+
def validate_notice_action_type(cls, action_type):
100+
validate_mets_type(action_type)
101+
return action_type
102102

103103

104104
class WorkMetadata(Metadata):

0 commit comments

Comments
 (0)