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

Parallel reading #9

Closed
cblegare opened this issue Oct 26, 2016 · 2 comments
Closed

Parallel reading #9

cblegare opened this issue Oct 26, 2016 · 2 comments

Comments

@cblegare
Copy link
Contributor

Got this warning from sphinx-build :

WARNING: the sphinx_autodoc_typehints extension does not declare if it is safe for parallel reading, assuming it isn't - please ask the extension author to check and make it explicit
WARNING: doing serial read

So... is your extension safe for parallel reading ?

@agronholm
Copy link
Collaborator

I've never seen this before – does this come from from the latest Sphinx? I have no clue what parallel or serial reads mean in this context.

@cblegare
Copy link
Contributor Author

cblegare commented Nov 9, 2016

The code that issues this warning is tagged from 1.3 onwards.

Based on a quick scan of the changed files, it looks like a an implementation for asynchrone I/O on source files that do not use asyncio or trollius.

You can suppress this warning by returning a dictionary from the setup() function.

def setup(app):
    # do stuff with app
    return dict(
        version="unknown version",
        parallel_read_safe=False,
        parallel_write_safe=True
    )

You can read about it in the documentation about extension metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants