@@ -311,7 +311,7 @@ def __egg_ref__(self) -> CallableRef:
311311 return self .__egg_ref_thunk__ ()
312312
313313 def __call__ (self , * args : object , _egg_partial_function : bool = False , ** kwargs : object ) -> RuntimeExpr | None :
314- from .conversion import resolve_literal
314+ from .conversion import resolve_literal # noqa: PLC0415
315315
316316 if isinstance (self .__egg_bound__ , RuntimeExpr ):
317317 args = (self .__egg_bound__ , * args )
@@ -493,7 +493,7 @@ def __egg_pretty__(self, wrapping_fn: str | None) -> str:
493493 return pretty_decl (self .__egg_decls__ , self .__egg_typed_expr__ .expr , wrapping_fn = wrapping_fn )
494494
495495 def _ipython_display_ (self ) -> None :
496- from IPython .display import Code , display
496+ from IPython .display import Code , display # noqa: PLC0415
497497
498498 display (Code (str (self ), language = "python" ))
499499
@@ -539,7 +539,7 @@ def _special_method(
539539 __name : str = name ,
540540 ** kwargs : object ,
541541 ) -> RuntimeExpr | Fact | None :
542- from .conversion import ConvertError
542+ from .conversion import ConvertError # noqa: PLC0415
543543
544544 class_name = self .__egg_class_name__
545545 class_decl = self .__egg_class_decl__
@@ -566,11 +566,11 @@ def _special_method(
566566 return fn (* args , ** kwargs ) # type: ignore[arg-type]
567567 # Handle == and != fallbacks to eq and ne helpers if the methods aren't defined on the class explicitly.
568568 if __name == "__eq__" :
569- from .egraph import BaseExpr , eq
569+ from .egraph import BaseExpr , eq # noqa: PLC0415
570570
571571 return eq (cast ("BaseExpr" , self )).to (cast ("BaseExpr" , args [0 ]))
572572 if __name == "__ne__" :
573- from .egraph import BaseExpr , ne
573+ from .egraph import BaseExpr , ne # noqa: PLC0415
574574
575575 return cast ("RuntimeExpr" , ne (cast ("BaseExpr" , self )).to (cast ("BaseExpr" , args [0 ])))
576576
@@ -591,7 +591,7 @@ def _reflected_method(self: RuntimeExpr, other: object, __non_reflected: str = n
591591
592592
593593def call_method_min_conversion (slf : object , other : object , name : str ) -> RuntimeExpr | None :
594- from .conversion import min_convertable_tp , resolve_literal
594+ from .conversion import min_convertable_tp , resolve_literal # noqa: PLC0415
595595
596596 # find a minimum type that both can be converted to
597597 # This is so so that calls like `-0.1 * Int("x")` work by upcasting both to floats.
0 commit comments