Update List to list type hints (newer style)

This commit is contained in:
Roy Nieterau 2024-06-25 10:22:43 +02:00
parent 7d9d9a5218
commit 6eeb0495ec

View file

@ -460,7 +460,7 @@ class BaseCreator:
'True' if did so. 'True' if did so.
Args: Args:
instances (List[CreatedInstance]): Instance objects which should be instances (list[CreatedInstance]): Instance objects which should be
removed. removed.
""" """
@ -716,7 +716,7 @@ class Creator(BaseCreator):
By default, returns `default_variants` value. By default, returns `default_variants` value.
Returns: Returns:
List[str]: Whisper variants for user input. list[str]: Whisper variants for user input.
""" """
return copy.deepcopy(self.default_variants) return copy.deepcopy(self.default_variants)
@ -789,7 +789,7 @@ class Creator(BaseCreator):
updating keys/values when plugin attributes change. updating keys/values when plugin attributes change.
Returns: Returns:
List[AbstractAttrDef]: Attribute definitions that can be tweaked list[AbstractAttrDef]: Attribute definitions that can be tweaked
for created instance. for created instance.
""" """
return self.pre_create_attr_defs return self.pre_create_attr_defs