parameters: (cls, *system, **kwargs)
return_statement: return super(ZerosPolesGain, cls).__new__(cls)
docstring: Handle object conversion if input is an instance of `lti`
docstring_summary: Handle object conversion if input is an instance of `lti`
docstring_tokens: Handle object conversion if input is an instance of lti
function: def __new__(cls, *system, **kwargs):
          """Handle object conversion if input is an instance of `lti`"""
          if len(system) == 1 and isinstance(system[0], LinearTimeInvariant):
              return system[0].to_zpk()
  
          # Choose whether to inherit from `lti` or from `dlti`
          if cls is ZerosPolesGain:
              if kwargs.get('dt') is None:
                  return ZerosPolesGainContinuous.__new__(
                      ZerosPolesGainContinuous,
                      *system,
                      **kwargs)
              else:
                  return ZerosPolesGainDiscrete.__new__(
                      ZerosPolesGainDiscrete,
                      *system,
                      **kwargs
                      )
  
          # No special conversion needed
          return super(ZerosPolesGain, cls).__new__(cls)
function_tokens: def __new__ ( cls , * system , * * kwargs ) : if len ( system ) == 1 and isinstance ( system [ 0 ] , LinearTimeInvariant ) : return system [ 0 ] . to_zpk ( ) # Choose whether to inherit from `lti` or from `dlti` if cls is ZerosPolesGain : if kwargs . get ( 'dt' ) is None : return ZerosPolesGainContinuous . __new__ ( ZerosPolesGainContinuous , * system , * * kwargs ) else : return ZerosPolesGainDiscrete . __new__ ( ZerosPolesGainDiscrete , * system , * * kwargs ) # No special conversion needed return super ( ZerosPolesGain , cls ) . __new__ ( cls )