def __init__(self, interp, scope):
        """Init the ``PfpTypes`` class

        :param pfp.interp.PfpInterp interp: The pfp interpreter
        :param pfp.interp.Scope scope: The scope to pull all the types from
        """
        self._interp = interp
        self._scope = scope
        self._null_stream = bitwrap.BitwrappedStream(NullStream())

        self._types_map = {}

        for scope_ctxt in self._scope._scope_stack:
            for type_name,type_cls in six.iteritems(scope_ctxt["types"]):
                if isinstance(type_cls, list):
                    type_cls = self._interp._resolve_to_field_class(type_cls, self._scope)
                self._types_map[type_name] = type_cls
def __init__ ( self , interp , scope ) : self . _interp = interp self . _scope = scope self . _null_stream = bitwrap . BitwrappedStream ( NullStream ( ) ) self . _types_map = { } for scope_ctxt in self . _scope . _scope_stack : for type_name , type_cls in six . iteritems ( scope_ctxt [ "types" ] ) : if isinstance ( type_cls , list ) : type_cls = self . _interp . _resolve_to_field_class ( type_cls , self . _scope ) self . _types_map [ type_name ] = type_cls
Init the ``PfpTypes`` class

        :param pfp.interp.PfpInterp interp: The pfp interpreter
        :param pfp.interp.Scope scope: The scope to pull all the types from