@@ -184,7 +184,9 @@ async def _resolve(context: Context, arg: str) -> Any:
184
184
185
185
return _resolve
186
186
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 ]:
188
190
if (
189
191
isinstance (converter , type )
190
192
and converter .__module__ .startswith ("twitchio" )
@@ -196,7 +198,7 @@ def _resolve_converter(self, name: str, converter: Union[Callable, Awaitable, ty
196
198
converter = self ._convert_builtin_type (name , bool , _boolconverter )
197
199
198
200
elif converter in (str , int ):
199
- original : type [str | int ] = converter # type: ignore
201
+ original : type [str | int ] = converter # type: ignore
200
202
converter = self ._convert_builtin_type (name , original , lambda _ , arg : original (arg ))
201
203
202
204
elif self ._is_optional_argument (converter ):
@@ -212,7 +214,10 @@ def _resolve_converter(self, name: str, converter: Union[Callable, Awaitable, ty
212
214
return converter # type: ignore
213
215
214
216
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 ]]],
216
221
) -> Callable [[Context , str ], Awaitable [Any ]]:
217
222
async def resolve (ctx , arg : str ) -> Any :
218
223
try :
0 commit comments