def findWarning(e: Exception) -> Tuple[(str, Exception)]:
    if ((typ != 'any') and (typ != 'func')):
        return (target, e)
    parser2 = DefinitionParser(target[:(- 2)], location=node, config=env.config)
    try:
        parser2.parse_xref_object()
    except DefinitionError as e2:
        return (target[:(- 2)], e2)
    return (target, e)
def findWarning(e: Exception) -> Tuple[(str, Exception)]:
    if ((typ != 'any') and (typ != 'func')):
        return (target, e)
    parser2 = DefinitionParser(target[:(- 2)], location=node, config=env.config)
    try:
        parser2.parse_xref_object()
    except DefinitionError as e2:
        return (target[:(- 2)], e2)
    return (target, e)