pyrser/type_system/scope.py
def remove(self, it: Signature) -> bool:
        """ Remove it but raise KeyError if not found """
        txt = it.internal_name()
        if txt not in self._hsig:
            raise KeyError(it.show_name() + ' not in Set')
        sig = self._hsig[txt]
        if isinstance(sig, Scope):
            sig.state = StateScope.LINKED
        del self._hsig[txt]
        return True
def remove(self, it: Signature) -> bool:
        """ Remove it but raise KeyError if not found """
        txt = it.internal_name()
        if txt not in self._hsig:
            raise KeyError(it.show_name() + ' not in Set')
        sig = self._hsig[txt]
        if isinstance(sig, Scope):
            sig.state = StateScope.LINKED
        del self._hsig[txt]
        return True
Remove it but raise KeyError if not found