9
9
10
10
11
11
@validator
12
- def card_number (value : str ):
12
+ def card_number (value : str , / ):
13
13
"""Return whether or not given value is a valid generic card number.
14
14
15
15
This validator is based on [Luhn's algorithm][1].
@@ -44,7 +44,7 @@ def card_number(value: str):
44
44
45
45
46
46
@validator
47
- def visa (value : str ):
47
+ def visa (value : str , / ):
48
48
"""Return whether or not given value is a valid Visa card number.
49
49
50
50
Examples:
@@ -70,7 +70,7 @@ def visa(value: str):
70
70
71
71
72
72
@validator
73
- def mastercard (value : str ):
73
+ def mastercard (value : str , / ):
74
74
"""Return whether or not given value is a valid Mastercard card number.
75
75
76
76
Examples:
@@ -96,7 +96,7 @@ def mastercard(value: str):
96
96
97
97
98
98
@validator
99
- def amex (value : str ):
99
+ def amex (value : str , / ):
100
100
"""Return whether or not given value is a valid American Express card number.
101
101
102
102
Examples:
@@ -122,7 +122,7 @@ def amex(value: str):
122
122
123
123
124
124
@validator
125
- def unionpay (value : str ):
125
+ def unionpay (value : str , / ):
126
126
"""Return whether or not given value is a valid UnionPay card number.
127
127
128
128
Examples:
@@ -148,7 +148,7 @@ def unionpay(value: str):
148
148
149
149
150
150
@validator
151
- def diners (value : str ):
151
+ def diners (value : str , / ):
152
152
"""Return whether or not given value is a valid Diners Club card number.
153
153
154
154
Examples:
@@ -174,7 +174,7 @@ def diners(value: str):
174
174
175
175
176
176
@validator
177
- def jcb (value : str ):
177
+ def jcb (value : str , / ):
178
178
"""Return whether or not given value is a valid JCB card number.
179
179
180
180
Examples:
@@ -200,7 +200,7 @@ def jcb(value: str):
200
200
201
201
202
202
@validator
203
- def discover (value : str ):
203
+ def discover (value : str , / ):
204
204
"""Return whether or not given value is a valid Discover card number.
205
205
206
206
Examples:
0 commit comments