Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference failed for relative "star" imports #504

Open
cglukas opened this issue Dec 2, 2024 · 0 comments
Open

Inference failed for relative "star" imports #504

cglukas opened this issue Dec 2, 2024 · 0 comments
Labels

Comments

@cglukas
Copy link

cglukas commented Dec 2, 2024

With the new version v3.4.0 I get the following exception:
Handler <function run_autoapi at 0x000001D6B2733920> for event 'builder-inited' threw an exception (exception: Inference failed for all members of [<Call l.3 at 0x1d6b47a4c50>].)

I created a simple test scenario:
file foo.py:

from bla import *

k = MyBla()

file bla.py:

class MyBla:
    pass

conf.py:

project = "Test"
copyright = "Mycopyright"
author = "Myself"
extensions = [
    "sphinx.ext.todo",
    "sphinx.ext.intersphinx",
    "sphinx.ext.autodoc",
    "autoapi.extension",
]

templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

autoapi_dirs = [".."]
autoapi_options = [
    "members",
    "undoc-members",
    "show-inheritance",
    "show-module-summary",
    "imported-members",
]
autodoc_typehints = "description"
autodoc_typehints_format = "short"

# Add linebreaks to long functions with multiple arguments:
python_maximum_signature_line_length = 120
# Prevents long type hints:
python_use_unqualified_type_names = True
# Prevents long import paths:
add_module_names = False

# This is the default but it's good to make it explicit in case of an update:
autoapi_root = "autoapi"
autoapi_member_order = "alphabetical"

All files are stored in the same directory.
The sphinx command is this: sphinx-build -M html . build/

Fails on Windows10 and on Ubuntu for me.
v3.3.3 worked fine

@cglukas cglukas changed the title Infere Inference failed for relative "star" imports Dec 2, 2024
@AWhetter AWhetter added the Bug label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants