Returns the type the typevar is bound to, or None.

def binding_of(self, typevar):
        """Returns the type the typevar is bound to, or None."""
        if typevar in self._ns:
            return self._ns[typevar]
        if self._instance_ns and typevar in self._instance_ns:
            return self._instance_ns[typevar]
        return None