@@ -387,7 +387,7 @@ def __egg_ref__(self) -> CallableRef:
387387 return self .__egg_ref_thunk__ ()
388388
389389 def __call__ (self , * args : object , _egg_partial_function : bool = False , ** kwargs : object ) -> RuntimeExpr | None :
390- from .conversion import resolve_literal
390+ from .conversion import resolve_literal # noqa: PLC0415
391391
392392 if isinstance (self .__egg_bound__ , RuntimeExpr ):
393393 args = (self .__egg_bound__ , * args )
@@ -540,7 +540,7 @@ def __egg_pretty__(self, wrapping_fn: str | None) -> str:
540540 return pretty_decl (self .__egg_decls__ , self .__egg_typed_expr__ .expr , wrapping_fn = wrapping_fn )
541541
542542 def _ipython_display_ (self ) -> None :
543- from IPython .display import Code , display
543+ from IPython .display import Code , display # noqa: PLC0415
544544
545545 display (Code (str (self ), language = "python" ))
546546
@@ -577,15 +577,15 @@ def __eq__(self, other: object) -> object: # type: ignore[override]
577577
578578 # TODO: Check if two objects can be upcasted to be the same. If not, then return NotImplemented so other
579579 # expr gets a chance to resolve __eq__ which could be a preserved method.
580- from .egraph import BaseExpr , eq
580+ from .egraph import BaseExpr , eq # noqa: PLC0415
581581
582582 return eq (cast ("BaseExpr" , self )).to (cast ("BaseExpr" , other ))
583583
584584 def __ne__ (self , other : object ) -> object : # type: ignore[override]
585585 if (method := _get_expr_method (self , "__ne__" )) is not None :
586586 return method (other )
587587
588- from .egraph import BaseExpr , ne
588+ from .egraph import BaseExpr , ne # noqa: PLC0415
589589
590590 return ne (cast ("BaseExpr" , self )).to (cast ("BaseExpr" , other ))
591591
@@ -647,7 +647,7 @@ def _numeric_binary_method(self: object, other: object, name: str = name, r_meth
647647 )
648648 )
649649 ):
650- from .conversion import CONVERSIONS , resolve_type , retrieve_conversion_decls
650+ from .conversion import CONVERSIONS , resolve_type , retrieve_conversion_decls # noqa: PLC0415
651651
652652 # tuple of (cost, convert_self)
653653 best_method : (
0 commit comments