Skip to content

Commit 4338e46

Browse files
committed
lint
1 parent 079c41d commit 4338e46

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

mypyc/codegen/emitclass.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,7 @@ def emit_line() -> None:
412412

413413
emitter.emit_line()
414414
if generate_full:
415-
generate_setup_for_class(
416-
cl, defaults_fn, vtable_name, shadow_vtable_name, emitter
417-
)
415+
generate_setup_for_class(cl, defaults_fn, vtable_name, shadow_vtable_name, emitter)
418416
emitter.emit_line()
419417
generate_constructor_for_class(cl, cl.ctor, init_fn, setup_name, vtable_name, emitter)
420418
emitter.emit_line()

mypyc/irbuild/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ def add_function(self, func_ir: FuncIR, line: int) -> None:
14621462
def get_current_class_ir(self) -> ClassIR | None:
14631463
type_info = self.fn_info.fitem.info
14641464
return self.mapper.type_to_ir.get(type_info)
1465-
1465+
14661466
def add_coroutine_setup_call(self, class_name: str, obj: Value) -> Value:
14671467
return self.add(
14681468
Call(

mypyc/irbuild/classdef.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from mypy.types import Instance, UnboundType, get_proper_type
3232
from mypyc.common import PROPSET_PREFIX
3333
from mypyc.ir.class_ir import ClassIR, NonExtClassInfo
34-
from mypyc.ir.func_ir import FuncDecl, FuncSignature, RuntimeArg
34+
from mypyc.ir.func_ir import FuncDecl, FuncSignature
3535
from mypyc.ir.ops import (
3636
NAMESPACE_TYPE,
3737
BasicBlock,

mypyc/test-data/run-async.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,9 +1759,9 @@ def with_ctx_man():
17591759
async def inner():
17601760
async with ctx_man():
17611761
return await f()
1762-
1762+
17631763
return inner
1764-
1764+
17651765
return decorator
17661766

17671767
async def func() -> int:

0 commit comments

Comments
 (0)