Takeshi KOMIYA
2e87ee85a2
Merge branch '2.0'
2020-02-09 00:57:53 +09:00
Takeshi KOMIYA
92cb828f14
autodoc: Support type_comment styled type annotation for variables
2020-02-03 01:19:05 +09:00
Takeshi KOMIYA
e7a0af807a
Merge branch '2.0'
2020-01-30 23:29:32 +09:00
Takeshi KOMIYA
dcd8f41a77
Add testcase for instance variables without defaults
2020-01-26 01:25:35 +09:00
Takeshi KOMIYA
ecf38edb43
Close #7051 : autodoc: Support instance variables without defaults (PEP-526)
2020-01-25 00:57:36 +09:00
Takeshi KOMIYA
4e257a8084
Merge branch '2.0' into 7023_partial_listed_as_module_members
2020-01-19 23:09:46 +09:00
Takeshi KOMIYA
347e301727
Merge branch '2.0'
2020-01-19 22:47:02 +09:00
Takeshi KOMIYA
a1f6bbf800
Merge pull request #7031 from tk0miya/7023_nested_partial_functions_not_listed
...
#7023 : autodoc: nested partial functions are not listed
2020-01-19 15:49:52 +09:00
Takeshi KOMIYA
53e38ccc30
Fix #7023 : autodoc: partial functions are listed as module members
2020-01-19 15:22:09 +09:00
Takeshi KOMIYA
e908e43f67
Fix #7023 : autodoc: nested partial functions are not listed
2020-01-17 09:15:45 +09:00
Takeshi KOMIYA
7906a6871e
Add testcase a partialmethod not having docstring (refs: #7023 )
2020-01-17 09:11:59 +09:00
Takeshi KOMIYA
ffdfb6cb87
Close #2755 : autodoc: Support type_comment style annotation
...
Note: python3.8+ or typed_ast is required
2020-01-13 13:23:45 +09:00
Takeshi KOMIYA
9ed162921e
autodoc: Support Positional-Only Argument separator (PEP-570 compliant)
2020-01-11 02:32:33 +09:00
Takeshi KOMIYA
b968bb91e9
Close #6830 : autodoc: consider a member private if docstring has "private" metadata
2020-01-04 13:28:07 +09:00
Takeshi KOMIYA
1c088ec163
Fix #6567 : autodoc: autodoc_inherit_docstrings does not effect to __init__()
2019-07-11 01:39:17 +09:00
Takeshi KOMIYA
95723aa6f6
Fix flake8 violations
2019-07-01 00:28:30 +09:00
Takeshi KOMIYA
e0eb86224d
Merge branch '2.1.1' into 2.0
2019-06-10 22:31:18 +09:00
Takeshi KOMIYA
21be789d4d
Revert "Fix #1063 : autodoc: automodule directive handles undocumented module level variables"
...
This reverts commit 69d93c967c
(without
CHANGES).
2019-06-10 21:40:11 +09:00
Takeshi KOMIYA
81e2e1d971
test: Update testcase for autoclass_content and autodoc_docstring_signature
2019-06-03 23:20:33 +09:00
Takeshi KOMIYA
f7851b62e0
test: Update testcase for autoclass_content
2019-06-03 23:20:33 +09:00
Takeshi KOMIYA
42e9fd896e
test: Move class inheritance samples into target.inheritance module
2019-06-03 22:34:33 +09:00
Takeshi KOMIYA
3f617a4a9b
test: Update testcase for between()
2019-06-03 01:16:20 +09:00
Takeshi KOMIYA
6cbee7de3c
test: Move descriptor example to independent file
2019-06-03 00:38:01 +09:00
Takeshi KOMIYA
69d93c967c
Fix #1063 : autodoc: automodule directive handles undocumented module level variables
2019-06-01 23:18:37 +09:00
Takeshi KOMIYA
0ea380eddd
Close #6361 : autodoc: Add autodoc_typehints to suppress typehints from signature
2019-05-26 00:35:24 +09:00
Takeshi KOMIYA
277aba935d
Close #6325 : autodoc: Support attributes in __slots__
2019-05-22 09:56:46 +09:00
Takeshi KOMIYA
e288999933
Close #744 : autodoc: Support abstractmethod
2019-05-15 00:01:00 +09:00
Takeshi KOMIYA
a765c2e4ab
Add sphinx.util.inspect:iscoroutinefunction()
2019-04-23 01:40:37 +09:00
Alex Sergeev
b7f6657dd1
Address feedback
2019-04-13 22:09:01 -10:00
Takeshi KOMIYA
4aecac8251
refactor: Move subject of inspection to rootdir
2019-04-13 22:48:49 +09:00
Brendt Wohlberg
5334d96213
Merge branch 'master' into master
2019-02-28 16:49:01 -08:00
Takeshi KOMIYA
8a391d1781
Merge branch '1.8'
2019-02-17 22:37:23 +09:00
Takeshi KOMIYA
08cd23a0bb
Fix #6047 : autodoc: `autofunction
` emits a warning for method objects
2019-02-17 18:23:14 +09:00
Takeshi KOMIYA
686486498c
Closes #1148 : autodoc: Add autodecorator directive for decorators
2019-02-15 02:14:38 +09:00
Takeshi KOMIYA
a6ef8190ce
Add testcase for mocked objects in autodoc
2019-02-11 01:46:38 +09:00
Takeshi KOMIYA
5428d94d24
Remove coding magic comments from tests
2019-01-02 21:53:07 +09:00
Stephen Finucane
d345d0f8c1
py3: Remove (most) __future__ imports
...
There were two used:
- print_function
- absolute_import
Both of these are mandatory in Python 3.0 onwards [1] and can therefore
be removed...mostly. Unfortunately, mypy is still running in Python 2.7
mode, meaning we need the 'print_function' future wherever we're calling
'print' with the 'file' argument. There's also a single
'absolute_import' future that must be retained as its removal breaks a
test for as-yet unknown reasons. TODOs are added to resolve both issues
in the future.
[1] https://docs.python.org/3/library/__future__.html
Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-12-17 09:46:15 +00:00
Takeshi KOMIYA
c6bd84a614
refactor: Remove u-prefix from strings
2018-12-16 21:28:51 +09:00
Takeshi KOMIYA
fd1dd13a50
refactor: Replace six.StringIO by io.StringIO
2018-12-15 21:00:38 +09:00
Takeshi KOMIYA
5f8b1ede8e
refactor: Replace six.add_metaclass by __metaclass_ attribute
2018-12-15 20:06:26 +09:00
Brendt Wohlberg
aacf2b8e65
Added test for correct nested class name when show-inheritance enabled
2018-12-02 08:36:31 -07:00
Takeshi KOMIYA
ea03286647
test: Move autodoc_missing_imports to test-ext-autodoc
2018-10-17 11:36:11 +09:00
Takeshi KOMIYA
48c634e623
test: Merge py35/test_autodoc_py35.py to test_autodoc.py
2018-09-22 16:41:44 +09:00
Takeshi KOMIYA
522105b79b
Merge branch '1.8'
2018-09-20 20:01:14 +09:00
Takeshi KOMIYA
c7f3933612
Merge branch '1.8' into 5431_warnings_for_callable
2018-09-18 23:34:33 +09:00
Takeshi KOMIYA
5c3a0e4e40
Fix #5431 : autodoc: `autofunction
` emits a warning for callable objects
2018-09-18 13:02:01 +09:00
Takeshi KOMIYA
9e8434f902
Fix #5436 : Autodoc does not work with enum subclasses with properties/methods
2018-09-18 13:01:10 +09:00
Takeshi KOMIYA
6d55e98da1
test: Move EnumCls to target.enum package
2018-09-18 13:01:10 +09:00
Takeshi KOMIYA
a7cab001d9
Drop APIs deprecated in 2.0
2018-09-03 00:31:33 +09:00
Takeshi KOMIYA
7f52ef7512
Merge branch '1.7'
2018-08-19 02:19:06 +09:00
Lewis Haley
6e1e35c98a
autodoc: allow specifying values to global arguments
...
Previously, users could specify a *list* of flags in their config files.
The flags were directive names that would otherwise be present in the
.rst files. However, as a list, it was not possible to specify values
to those flags, which *is* possible in .rst files.
For example, in .rst you could say
:special-members: __init__, __iter__
And this would cause autodoc to generate documents for these methods that
it would otherwise ignore.
This commit changes the config option to instead accept a dictionary.
This is a dictionary whose keys can contain the same flag-names as before,
but whose values can contain the arguments as seen in .rst files.
The old list is still supported, for backwards compatibility, but the data
is transformed into a dictionary when the user's config is loaded.
2018-08-17 15:51:00 +01:00
Takeshi KOMIYA
c4fa1aed34
Fix #5211 : autodoc: No docs generated for functools.partial functions
2018-08-17 01:24:19 +09:00
Takeshi KOMIYA
b1acc54cf9
Fix #5139 : autodoc: Enum argument missing if it shares value with another
2018-07-15 18:53:53 +09:00
Takeshi KOMIYA
f7027049b1
Fix flake8 violations
2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
656e3be754
Fix #4539 : autodoc emits warnings for partialmethods
2018-02-04 23:23:43 +09:00
Takeshi KOMIYA
295323d5aa
Fix #4415 : autodoc classifies inherited staticmethods as regular methods
2018-01-20 01:10:47 +09:00
Takeshi KOMIYA
cbb10d61f7
Fix #4415 : autodoc classifies inherited classmethods as regular methods
2018-01-20 01:10:47 +09:00
Takeshi KOMIYA
ec240614d9
test_autodoc: Separate testdata (python objects) and testcases
2017-12-21 12:12:13 +09:00