Skip to content

Commit 9176808

Browse files
committed
docs: Use autodoc_default_options
1 parent 0857fdb commit 9176808

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

agate/data_types/date.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ def cast(self, d):
5656
If both `date_format` and `locale` have been specified
5757
in the `agate.Date` instance, the `cast()` function
5858
is not thread-safe.
59-
:returns:
60-
:class:`datetime.date` or :code:`None`.
59+
:returns: :class:`datetime.date` or :code:`None`.
6160
"""
6261
if type(d) is date or d is None:
6362
return d

agate/data_types/date_time.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ def cast(self, d):
6363
If both `date_format` and `locale` have been specified
6464
in the `agate.DateTime` instance, the `cast()` function
6565
is not thread-safe.
66-
:returns:
67-
:class:`datetime.datetime` or :code:`None`.
66+
:returns: :class:`datetime.datetime` or :code:`None`.
6867
"""
6968
if isinstance(d, datetime.datetime) or d is None:
7069
return d

docs/conf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434

3535
htmlhelp_basename = 'agatedoc'
3636

37-
autodoc_default_flags = ['members', 'show-inheritance']
37+
autodoc_default_options = {
38+
'members': None,
39+
'show-inheritance': True,
40+
}
3841

3942
intersphinx_mapping = {
4043
'python': ('https://docs.python.org/3', None),

0 commit comments

Comments
 (0)