def __contains__(self, k):
        """Handle extra keys, then delegate."""
        if k in self.extrakeys:
            return True
        return super().__contains__(k)
def __contains__ ( self , k ) : if k in self . extrakeys : return True return super ( ) . __contains__ ( k )
Handle extra keys, then delegate.