Skip to content

Commit 3517eb7

Browse files
authored
Fix sphinx warnings (#602)
Fix #539
1 parent a2e9706 commit 3517eb7

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

doc/MySQLdb.rst

+13-18
Original file line numberDiff line numberDiff line change
@@ -9,53 +9,48 @@ MySQLdb Package
99
:undoc-members:
1010
:show-inheritance:
1111

12-
:mod:`connections` Module
13-
-------------------------
12+
:mod:`MySQLdb.connections` Module
13+
---------------------------------
1414

1515
.. automodule:: MySQLdb.connections
1616
:members: Connection
1717
:undoc-members:
18-
:show-inheritance:
1918

20-
:mod:`converters` Module
21-
------------------------
19+
:mod:`MySQLdb.converters` Module
20+
--------------------------------
2221

2322
.. automodule:: MySQLdb.converters
2423
:members:
2524
:undoc-members:
26-
:show-inheritance:
2725

28-
:mod:`cursors` Module
29-
---------------------
26+
:mod:`MySQLdb.cursors` Module
27+
-----------------------------
3028

3129
.. automodule:: MySQLdb.cursors
32-
:members: Cursor
30+
:members:
3331
:undoc-members:
3432
:show-inheritance:
3533

36-
:mod:`times` Module
37-
-------------------
34+
:mod:`MySQLdb.times` Module
35+
---------------------------
3836

3937
.. automodule:: MySQLdb.times
4038
:members:
4139
:undoc-members:
42-
:show-inheritance:
4340

44-
:mod:`_mysql` Module
45-
--------------------
41+
:mod:`MySQLdb._mysql` Module
42+
----------------------------
4643

4744
.. automodule:: MySQLdb._mysql
4845
:members:
4946
:undoc-members:
50-
:show-inheritance:
5147

52-
:mod:`_exceptions` Module
53-
-------------------------
48+
:mod:`MySQLdb._exceptions` Module
49+
---------------------------------
5450

5551
.. automodule:: MySQLdb._exceptions
5652
:members:
5753
:undoc-members:
58-
:show-inheritance:
5954

6055

6156
Subpackages

doc/conf.py

+7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222

2323
# -- General configuration -----------------------------------------------------
2424

25+
nitpick_ignore = [
26+
("py:class", "datetime.date"),
27+
("py:class", "datetime.time"),
28+
("py:class", "datetime.datetime"),
29+
]
30+
31+
2532
# If your documentation needs a minimal Sphinx version, state it here.
2633
# needs_sphinx = "1.0"
2734

src/MySQLdb/cursors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ._exceptions import ProgrammingError
99

1010

11-
#: Regular expression for :meth:`Cursor.executemany`.
11+
#: Regular expression for ``Cursor.executemany```.
1212
#: executemany only supports simple bulk insert.
1313
#: You can use it to load large dataset.
1414
RE_INSERT_VALUES = re.compile(

0 commit comments

Comments
 (0)