File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def has_valid_fields(passport: dict) -> bool:
32
32
33
33
34
34
class Validator :
35
- def is_valid (self , field : dict ) -> bool :
35
+ def is_valid (self , field : str ) -> bool :
36
36
return True
37
37
38
38
@@ -42,7 +42,7 @@ def is_valid(self, birth_year: str) -> bool:
42
42
43
43
44
44
class HeightValidator (Validator ):
45
- def is_valid (self , height : dict ) -> bool :
45
+ def is_valid (self , height : str ) -> bool :
46
46
if height .endswith ('in' ):
47
47
return 59 <= int (height [:- 2 ]) <= 76
48
48
elif height .endswith ('cm' ):
@@ -64,7 +64,7 @@ def is_valid(self, eye_color: dict) -> bool:
64
64
65
65
66
66
class PidValidator (Validator ):
67
- def is_valid (self , pid : dict ) -> bool :
67
+ def is_valid (self , pid : str ) -> bool :
68
68
return re .match ("[0-9]{9}$" , pid )
69
69
70
70
You can’t perform that action at this time.
0 commit comments