'Remove tests for alternatively allowed None values from
type tests when we know that the argument cannot be None
anyway.'

def visit_PyTypeTestNode(self, node):

    self.visitchildren(node)
    if (not node.notnone):
        if (not node.arg.may_be_none()):
            node.notnone = True
    return node
