4343 get_longest_related_suffix
4444
4545
46- def store_val (argument_name : str , val : Any , configuration : dict , args : list = None ) -> (list , dict ):
46+ def store_val (argument_name : str , val : Any , configuration : dict , args : list | None = None ) -> (list , dict ):
4747 """
4848 Action that stores the value of the argument on the parser result
4949
@@ -55,7 +55,7 @@ def store_val(argument_name: str, val: Any, configuration: dict, args: list = No
5555 return args , configuration
5656
5757
58- def store_true (argument_name : str , configuration : dict , val : Any = None , args : list = None ) -> (list , dict ):
58+ def store_true (argument_name : str , configuration : dict , val : Any = None , args : list | None = None ) -> (list , dict ):
5959 """
6060 Action that stores a True boolean value on the parser result
6161
@@ -65,7 +65,7 @@ def store_true(argument_name: str, configuration: dict, val: Any = None, args: l
6565 return args , configuration
6666
6767
68- def extract_file_names (argument_name : str , val : Any , configuration : dict , args : list = None ):
68+ def extract_file_names (argument_name : str , val : Any , configuration : dict , args : list | None = None ):
6969 """
7070 Action used to convert string from --files parameter into a list of file name
7171 """
@@ -79,7 +79,7 @@ class ConfigurationArgument:
7979 """
8080
8181 def __init__ (self , names : list , is_flag : bool , default_value : Any , help_text : str , argument_type : type ,
82- is_mandatory : bool , action : Callable = None ):
82+ is_mandatory : bool , action : Callable | None = None ):
8383 self .names = names
8484 self .is_flag = is_flag
8585 self .default_value = default_value
0 commit comments