@@ -84,7 +84,7 @@ def get_raw(self) -> npt.NDArray:
8484 return np .linspace (start , stop , n_points )
8585
8686
87- class Keithley7510Buffer (InstrumentChannel ):
87+ class Keithley7510Buffer (InstrumentChannel [ "Keithley7510" ] ):
8888 """
8989 Treat the reading buffer as a submodule, similar to Sense.
9090 """
@@ -419,7 +419,7 @@ class _FunctionMode(TypedDict):
419419 range_vals : Numbers | None
420420
421421
422- class Keithley7510Sense (InstrumentChannel ):
422+ class Keithley7510Sense (InstrumentChannel [ "Keithley7510" ] ):
423423 function_modes : ClassVar [dict [str , _FunctionMode ]] = {
424424 "voltage" : {
425425 "name" : '"VOLT:DC"' ,
@@ -455,7 +455,7 @@ class Keithley7510Sense(InstrumentChannel):
455455
456456 def __init__ (
457457 self ,
458- parent : VisaInstrument ,
458+ parent : "Keithley7510" ,
459459 name : str ,
460460 proper_function : str ,
461461 ** kwargs : "Unpack[InstrumentBaseKWArgs]" ,
@@ -630,7 +630,7 @@ def clear_trace(self, buffer_name: str = "defbuffer1") -> None:
630630 self .write (f":TRACe:CLEar '{ buffer_name } '" )
631631
632632
633- class Keithley7510DigitizeSense (InstrumentChannel ):
633+ class Keithley7510DigitizeSense (InstrumentChannel [ "Keithley7510" ] ):
634634 """
635635 The Digitize sense module of the Keithley 7510 DMM.
636636 """
@@ -649,7 +649,7 @@ class Keithley7510DigitizeSense(InstrumentChannel):
649649 },
650650 }
651651
652- def __init__ (self , parent : VisaInstrument , name : str , proper_function : str ) -> None :
652+ def __init__ (self , parent : "Keithley7510" , name : str , proper_function : str ) -> None :
653653 super ().__init__ (parent , name )
654654
655655 self ._proper_function = proper_function
0 commit comments