@@ -37,7 +37,7 @@ class _NameTransformerMiddleware(BlockMiddleware, abc.ABC):
3737 def __init__ (
3838 self ,
3939 allow_inplace_modification : bool = True ,
40- name_fields : Tuple [str ] = ("author" , "editor" , "translator" ),
40+ name_fields : Tuple [str , ... ] = ("author" , "editor" , "translator" ),
4141 ):
4242 super ().__init__ (
4343 allow_inplace_modification = allow_inplace_modification ,
@@ -46,7 +46,7 @@ def __init__(
4646 self ._name_fields = name_fields
4747
4848 @property
49- def name_fields (self ) -> Tuple [str ]:
49+ def name_fields (self ) -> Tuple [str , ... ]:
5050 """The fields that contain names, considered by this middleware."""
5151 return self ._name_fields
5252
@@ -187,7 +187,7 @@ def __init__(
187187 self ,
188188 style : Literal ["last" , "first" ] = "last" ,
189189 allow_inplace_modification : bool = True ,
190- name_fields : Tuple [str ] = ("author" , "editor" , "translator" ),
190+ name_fields : Tuple [str , ... ] = ("author" , "editor" , "translator" ),
191191 ):
192192 self .style = style
193193 super ().__init__ (allow_inplace_modification , name_fields )
0 commit comments