Skip to content

Commit 2f3d729

Browse files
committed
fix lint -_-
1 parent 8f5ee02 commit 2f3d729

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

twitchio/ext/commands/core.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)