Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5e7d005

Browse files
committed
Don't treat sphinx warnings as errors
Workaround forpython/cpython#100520 (rst syntax error in configparser docstrings), which was fixed in CPython 3.10+.Docutils raises warnings about the invalid docstrings, and `-W` instructs sphinx to treat this as errors. We can't control or silence these warnings, so we accept them and don't treat them as errors.See the discussion in#2060 for details.
1 parent4c7778a commit5e7d005

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎doc/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# You can set these variables from the command line.
55
BUILDDIR = build
6-
SPHINXOPTS = -W
6+
SPHINXOPTS =
77
SPHINXBUILD = sphinx-build
88
PAPER =
99

‎git/config.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ def __new__(cls, name: str, bases: Tuple, clsdict: Dict[str, Any]) -> "MetaParse
8787
mutating_methods=clsdict[kmm]
8888
forbaseinbases:
8989
methods= (tfortininspect.getmembers(base,inspect.isroutine)ifnott[0].startswith("_"))
90-
forname,methodinmethods:
91-
ifnameinclsdict:
90+
formethod_name,methodinmethods:
91+
ifmethod_nameinclsdict:
9292
continue
9393
method_with_values=needs_values(method)
94-
ifnameinmutating_methods:
94+
ifmethod_nameinmutating_methods:
9595
method_with_values=set_dirty_and_flush_changes(method_with_values)
9696
# END mutating methods handling
9797

98-
clsdict[name]=method_with_values
98+
clsdict[method_name]=method_with_values
9999
# END for each name/method pair
100100
# END for each base
101101
# END if mutating methods configuration is set

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp