File: sphinx-autodoc-defaults.patch

package info (click to toggle)
rdflib 7.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 77,852 kB
  • sloc: python: 59,555; sh: 153; makefile: 83; ruby: 74; xml: 45
file content (24 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: James Addison <jay@jp-hosting.net>
Date: Sun, 10 Mar 2024 23:59:09 +0000
Subject: enable Sphinx autodoc preservation of method-argument defaults .
 This avoids build-time variation such as object memory addresses from
 inadvertently leaking into the packaged documentation.

Bug-Debian: https://bugs.debian.org/1066016
---
 docs/conf.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docs/conf.py b/docs/conf.py
index 3a6f45e..4c818cb 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -262,6 +262,8 @@ html_experimental_html5_writer = True
 
 needs_sphinx = "4.1.2"
 
+autodoc_preserve_defaults = True  # http://bugs.debian.org/1066016
+
 suppress_warnings = [
     # This is here to prevent:
     #  "WARNING: more than one target found for cross-reference"