@@ -184,7 +184,9 @@ async def _resolve(context: Context, arg: str) -> Any:
184184
185185 return _resolve
186186
187- def _resolve_converter (self , name : str , converter : Union [Callable , Awaitable , type ], ctx : Context ) -> Callable [..., Any ]:
187+ def _resolve_converter (
188+ self , name : str , converter : Union [Callable , Awaitable , type ], ctx : Context
189+ ) -> Callable [..., Any ]:
188190 if (
189191 isinstance (converter , type )
190192 and converter .__module__ .startswith ("twitchio" )
@@ -196,7 +198,7 @@ def _resolve_converter(self, name: str, converter: Union[Callable, Awaitable, ty
196198 converter = self ._convert_builtin_type (name , bool , _boolconverter )
197199
198200 elif converter in (str , int ):
199- original : type [str | int ] = converter # type: ignore
201+ original : type [str | int ] = converter # type: ignore
200202 converter = self ._convert_builtin_type (name , original , lambda _ , arg : original (arg ))
201203
202204 elif self ._is_optional_argument (converter ):
@@ -212,7 +214,10 @@ def _resolve_converter(self, name: str, converter: Union[Callable, Awaitable, ty
212214 return converter # type: ignore
213215
214216 def _convert_builtin_type (
215- self , arg_name : str , original : type , converter : Union [Callable [[Context , str ], Any ], Callable [[Context , str ], Awaitable [Any ]]]
217+ self ,
218+ arg_name : str ,
219+ original : type ,
220+ converter : Union [Callable [[Context , str ], Any ], Callable [[Context , str ], Awaitable [Any ]]],
216221 ) -> Callable [[Context , str ], Awaitable [Any ]]:
217222 async def resolve (ctx , arg : str ) -> Any :
218223 try :
0 commit comments