File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/sphinx_autodoc_typehints Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1011,7 +1011,7 @@ def sphinx_autodoc_typehints_type_role(
1011
1011
return [n ], []
1012
1012
1013
1013
1014
- def setup (app : Sphinx ) -> dict [str , bool ]:
1014
+ def setup (app : Sphinx ) -> dict [str , bool | str ]:
1015
1015
app .add_config_value ("always_document_param_types" , False , "html" ) # noqa: FBT003
1016
1016
app .add_config_value ("typehints_fully_qualified" , False , "env" ) # noqa: FBT003
1017
1017
app .add_config_value ("typehints_document_rtype" , True , "env" ) # noqa: FBT003
@@ -1029,7 +1029,11 @@ def setup(app: Sphinx) -> dict[str, bool]:
1029
1029
app .connect ("autodoc-process-signature" , process_signature )
1030
1030
app .connect ("autodoc-process-docstring" , process_docstring )
1031
1031
install_patches (app )
1032
- return {"parallel_read_safe" : True , "parallel_write_safe" : True }
1032
+ return {
1033
+ "version" : __version__ ,
1034
+ "parallel_read_safe" : True ,
1035
+ "parallel_write_safe" : True ,
1036
+ }
1033
1037
1034
1038
1035
1039
__all__ = [
You can’t perform that action at this time.
0 commit comments