mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
[V2] Upgrade ruff and mypy version, format files (#4474)
This commit is contained in:

committed by
GitHub

parent
918f719ab2
commit
86d41e1f06
@@ -110,13 +110,13 @@ def main() -> None:
|
||||
function.args.args[0].annotation = None
|
||||
|
||||
if isinstance(function, ast.AsyncFunctionDef):
|
||||
call = ast.Await(value=call)
|
||||
call = ast.Await(value=call) # type: ignore [arg-type]
|
||||
|
||||
match function.returns:
|
||||
case ast.Constant(value=None):
|
||||
call = ast.Expr(value=call)
|
||||
call = ast.Expr(value=call) # type: ignore [arg-type]
|
||||
case _:
|
||||
call = ast.Return(value=call)
|
||||
call = ast.Return(value=call) # type: ignore [arg-type]
|
||||
|
||||
function.body.append(call)
|
||||
class_body.append(function)
|
||||
|
Reference in New Issue
Block a user