@@ -40,7 +40,11 @@ def register(cls) -> None:
4040 # only on subclasses that implement specific rules
4141 raise NotImplementedError
4242
43- def __init__ (self , arguments : Optional [List [Union ['Tag' , SupportsInt , List [Union [Text , 'String' ]]]]] = None , tests : Optional [List ['Test' ]] = None ) -> None :
43+ def __init__ (
44+ self ,
45+ arguments : Optional [List [Union ['Tag' , SupportsInt , List [Union [Text , 'String' ]]]]] = None ,
46+ tests : Optional [List ['Test' ]] = None
47+ ) -> None :
4448 if arguments is None :
4549 self .arguments = []
4650 else :
@@ -63,7 +67,10 @@ def validate_arguments(
6367 self ,
6468 tagged_args : Optional [Union [List [Validator ], Dict [Text , Validator ]]] = None ,
6569 positional_args : Optional [List [Validator ]] = None
66- ) -> Tuple [Dict [Text , List [Union [Tag , SupportsInt , List [Union [Text , 'String' ]]]]], List [Union [Tag , SupportsInt , List [Union [Text , 'String' ]]]]]:
70+ ) -> Tuple [
71+ Dict [Text , List [Union [Tag , SupportsInt , List [Union [Text , 'String' ]]]]],
72+ List [Union [Tag , SupportsInt , List [Union [Text , 'String' ]]]]
73+ ]:
6774 if tagged_args is None :
6875 tagged_args = {}
6976 if positional_args is None :
@@ -80,7 +87,8 @@ def validate_arguments(
8087 if num_valid_args is not None and num_valid_args > 0 :
8188 if arg_name in seen_args :
8289 raise RuleSyntaxError (
83- "%s argument to %s was already seen earlier: %s" % (arg_name , self .RULE_IDENTIFIER , self .arguments [i ])
90+ "%s argument to %s was already seen earlier: %s" %
91+ (arg_name , self .RULE_IDENTIFIER , self .arguments [i ])
8492 )
8593 seen_args [arg_name ] = self .arguments [i :i + num_valid_args ]
8694 i += num_valid_args
0 commit comments