syncopy.shared.errors.SPYTypeError#

exception syncopy.shared.errors.SPYTypeError(var, varname='', expected='')[source]#

SynCoPy-specific version of a TypeError

var#

The culprit responsible for ending up here

Type:

object

varname#

Name of the variable in the code

Type:

str

expected#

Expected type of var

Type:

type or str

__init__(var, varname='', expected='')[source]#
args#
with_traceback()#

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.