class_docstr: Provide shared utilities for making approximate comparisons between numbers
  or sequences of numbers.
class_docstr_tok: ["Provide","shared","utilities","for","making","approximate","comparisons","between","numbers","or","sequences","of","numbers","."]
docstr: Raise a TypeError if the expected value is not a valid type.
code: def _check_type(self):
      """
      Raise a TypeError if the expected value is not a valid type.
      """
      # This is only a concern if the expected value is a sequence.  In every
      # other case, the approx() function ensures that the expected value has
      # a numeric type.  For this reason, the default is to do nothing.  The
      # classes that deal with sequences should reimplement this method to
      # raise if there are any non-numeric elements in the sequence.
      pass
  
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 7 for calling the ApproxBase obj's underlying member method code with example usage: obj._check_type() without return types