class_docstr: Perform approximate comparisons where the expected value is a sequence of
  numbers.
class_docstr_tok: ["Perform","approximate","comparisons","where","the","expected","value","is","a","sequence","of","numbers","."]
code: def _check_type(self):
      __tracebackhide__ = True
      for index, x in enumerate(self.expected):
          if isinstance(x, type(self.expected)):
              msg = "pytest.approx() does not support nested data structures: {!r} at index {}\n  full sequence: {}"
              raise TypeError(
                  msg.format(x, index, pprint.pformat(self.expected))
              )
          elif not isinstance(x, Number):
              raise _non_numeric_type_error(
                  self.expected, at="index {}".format(index)
              )
  
imports: from __future__ import absolute_import
  import math
  import pprint
  import sys
  import warnings
  from decimal import Decimal
  from numbers import Number
  from more_itertools.more import always_iterable
  from six.moves import filterfalse
  from six.moves import zip
  import _pytest._code
  from _pytest import deprecated
  from _pytest.compat import isclass
  from _pytest.compat import Iterable
  from _pytest.compat import Mapping
  from _pytest.compat import Sized
  from _pytest.compat import STRING_TYPES
  from _pytest.outcomes import fail
label_desc: Use image node_id 4 for calling the ApproxSequencelike obj's underlying member method code with example usage: obj._check_type() without return types