Skip to content

Commit fb59f64

Browse files
authored
Declare extension safe for parallel reads (#171)
1 parent 0f6a874 commit fb59f64

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
55
## Unreleased
66

77
- Allow to add content to directive.
8+
- Fix Sphinx warnings about parallel reads.
89

910
## 1.13.1
1011

src/sphinx_argparse_cli/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,24 @@
22

33
from __future__ import annotations
44

5-
from typing import TYPE_CHECKING
5+
from typing import TYPE_CHECKING, Any
66

77
from .version import __version__
88

99
if TYPE_CHECKING:
1010
from sphinx.application import Sphinx
1111

1212

13-
def setup(app: Sphinx) -> None:
13+
def setup(app: Sphinx) -> dict[str, Any]:
1414
app.add_css_file("custom.css")
1515

1616
from ._logic import SphinxArgparseCli
1717

1818
app.add_directive(SphinxArgparseCli.name, SphinxArgparseCli)
1919
app.add_config_value("sphinx_argparse_cli_prefix_document", False, "env") # noqa: FBT003
2020

21+
return {"parallel_read_safe": True}
22+
2123

2224
__all__ = [
2325
"__version__",

0 commit comments

Comments
 (0)