This file is indexed.

/usr/lib/python2.7/dist-packages/apptools/type_manager/abstract_type_system.py is in python-apptools 4.3.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
""" The abstract base class for type systems. """


# Enthought library imports.
from traits.api import HasTraits


class AbstractTypeSystem(HasTraits):
    """ The abstract base class for type systems.

    A type system is responsible for:-

    1) Determining whether an object is of a particular type.
    2) Determining the MRO of a type.

    See 'PythonTypeSystem' for an implementation with standard Python
    semantics.

    """

    ###########################################################################
    # 'AbstractTypeSystem' interface.
    ###########################################################################

    def is_a(self, obj, type):
        """ Is an object an instance of the specified type? """

        raise NotImplementedError

    def get_mro(self, type):
        """ Returns the MRO of a type. """

        raise NotImplementedError

#### EOF ######################################################################