mirror of
https://github.com/python-escpos/python-escpos
synced 2025-08-24 09:03:34 +00:00
Fix import issues with qrcode in sphinx 7.2 (#552)
* 7.2 introduces the issue * mock module qrcode for documentation build This prevents issues with sphinx 7.2
This commit is contained in:
@@ -34,6 +34,7 @@ root = os.path.relpath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
# ones.
|
||||
extensions = [
|
||||
"sphinx.ext.autodoc",
|
||||
"sphinx_autodoc_typehints",
|
||||
"sphinx.ext.doctest",
|
||||
"sphinx.ext.todo",
|
||||
"sphinx.ext.coverage",
|
||||
@@ -46,6 +47,9 @@ extensions = [
|
||||
"sphinxcontrib.spelling",
|
||||
]
|
||||
|
||||
# mock the following modules for autodoc
|
||||
autodoc_mock_imports = ["qrcode"]
|
||||
|
||||
# supress warnings for external images
|
||||
suppress_warnings = [
|
||||
"image.nonlocal_uri",
|
||||
|
Reference in New Issue
Block a user