Rob Ruana
408219cf81
Fixes mypy type errors introduced by #5129
2018-09-23 09:36:41 -04:00
Rob Ruana
e547a6a0d2
Fixes #5426 : [Napoleon] Better handling of inline attributes ( #5470 )
...
* Fixes #5426 : [Napoleon] Better handling of inline attributes
* Removes uneeded NOQA comments
* Fixes imports
2018-09-23 09:26:17 -04:00
Toshiki Kataoka
bd1e33643c
Qualify attribute names for generated ivar ( #5129 )
...
* Use qualified name in ivar
* bugfix
* fix style
* Moves _qualify_name into class to be more consistent with surrounding code
2018-09-23 09:25:31 -04:00
Rob Ruana
329c3f457e
Fixes flake8 and mypy type errors introduced by #4046
2018-09-23 09:11:10 -04:00
Antony Lee
dbb7c38220
Rendering of exceptions by napoleon. ( #4046 )
...
This lets napoleon render exceptions using the standard info field
syntax
```
:raises FooException: Some condition.
```
rather than the nonstandard
```
:raises: :exc:`FooException` -- Some condition.
```
Note that the previous approach was more forgiving if an explanatory
text was given in the Raises section without an actual exception class:
```
Raises
------
If something occurs.
```
would be rendered as
```
:raises: *If something occurs*
```
which is OK-ish but is now rendered as
```
:raises If something occurs.:
```
which is somewhat more nonsensical.
However neither the Google style guide nor numpydoc actually support
this form (they always have both the type and the description) so I
think the change is reasonable.
2018-09-23 08:31:27 -04:00
Takeshi KOMIYA
f5616139e8
Merge pull request #5441 from tk0miya/use_collection.abc
...
napoleon: Use collections.abc
2018-09-23 18:33:29 +09:00
Takeshi KOMIYA
d57a948119
Merge pull request #5472 from jdufresne/elem_gettexts
...
Remove Python 2.6 compat shim for ElementTree.itertext
2018-09-23 18:31:31 +09:00
Jon Dufresne
a3bc49dd64
Remove Python 2.6 compat shim for ElementTree.itertext
2018-09-22 10:32:28 -07:00
Takeshi KOMIYA
37d58ab9d5
Merge pull request #5469 from tk0miya/5414_class_object
...
Remove unnecessary object from class definitions
2018-09-22 23:13:14 +09:00
Takeshi KOMIYA
dc44b0d2a9
Merge branch 'master' into HEAD
2018-09-22 22:54:15 +09:00
Takeshi KOMIYA
b4fab4bf11
Replace iteritems() by dict.items()
2018-09-22 22:51:25 +09:00
Takeshi KOMIYA
6f25bd3680
Merge branch 'master' into drop-iteritems
2018-09-22 22:17:38 +09:00
Takeshi KOMIYA
323d27ef8f
Fix flake8 violation
2018-09-22 22:11:47 +09:00
Takeshi KOMIYA
0e882d1587
Merge branch 'master' into open
2018-09-22 21:53:00 +09:00
Takeshi KOMIYA
6c1a696fe8
Merge pull request #5397 from tk0miya/drop_py2
...
refactoring: Drop PY2 and PY3 flags
2018-09-22 21:38:35 +09:00
Takeshi KOMIYA
3a2418a827
refactoring: Drop PY2 and PY3 flags
2018-09-22 21:27:59 +09:00
Takeshi KOMIYA
5ffce30d75
Merge pull request #5413 from jdufresne/six-classtypes
...
Remove use of six.class_types
2018-09-22 20:05:31 +09:00
Takeshi KOMIYA
47661f844f
Merge branch '1.8'
2018-09-22 17:35:59 +09:00
Takeshi KOMIYA
985a982508
Bump version
2018-09-22 17:35:00 +09:00
Takeshi KOMIYA
65a560fd3e
Bump to 1.8.1 final
2018-09-22 17:32:40 +09:00
Takeshi KOMIYA
98648325aa
Merge branch '1.8'
2018-09-22 17:16:24 +09:00
Takeshi KOMIYA
46298f2a7b
Merge branch 'master' into six-classtypes
2018-09-22 17:11:52 +09:00
Takeshi KOMIYA
bc61764319
Merge pull request #5398 from tk0miya/drop_py2_2
...
Drop branches for sys.version_info < (3, 4)
2018-09-22 17:09:28 +09:00
Takeshi KOMIYA
8d1b3646b9
Merge pull request #5468 from tk0miya/5426_TypeError_for_class_attributes
...
Fix py domain: TypeError has been raised for class attribute (ref: #5426 )
2018-09-22 17:03:58 +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
40a2fdf315
test: Merge py3/test_util_inspect_py3.py to test_util_inspect.py
2018-09-22 16:36:10 +09:00
Takeshi KOMIYA
e1ac2eebfb
Merge branch '1.8' into 5426_TypeError_for_class_attributes
2018-09-22 16:34:41 +09:00
Takeshi KOMIYA
b18fe13f55
Drop branches for sys.version_info < (3, 4)
2018-09-22 16:31:07 +09:00
Takeshi KOMIYA
52e68a79b5
Merge pull request #5467 from tk0miya/5432_attribute_type_disallows_termref
...
Fix #5432 : py domain: :type: field can't process :term: references
2018-09-22 16:26:33 +09:00
Takeshi KOMIYA
2f4047af78
Fix py domain: TypeError has been raised for class attribute (ref: #5426 )
2018-09-22 16:22:39 +09:00
Takeshi KOMIYA
c0fffb9e8b
Fix #5432 : py domain: :type: field can't process :term: references
2018-09-22 15:24:14 +09:00
Takeshi KOMIYA
a2748f787c
Merge pull request #5465 from tk0miya/5454_disappeared_index_in_latexpdfja
...
Fix #5454 : latex: Index has disappeared from PDF for Japanese documents
2018-09-22 01:17:57 +09:00
Takeshi KOMIYA
282282cc22
Fix #5454 : latex: Index has disappeared from PDF for Japanese documents
2018-09-22 00:53:27 +09:00
Takeshi KOMIYA
49c231ee34
Merge pull request #5464 from tk0miya/5463_deprecate_math_role
...
Fix #5463 : mathbase: math_role and MathDirective was disappeared in 1.8.0
2018-09-22 00:47:38 +09:00
Takeshi KOMIYA
ae12f357c7
Fix #5463 : mathbase: math_role and MathDirective was disappeared in 1.8.0
2018-09-21 23:44:11 +09:00
jfbu
b87d339b72
Fix typo in make.bat template help string, update help strings
...
modified: sphinx/templates/quickstart/Makefile_t
modified: sphinx/templates/quickstart/make.bat_t
2018-09-20 22:58:54 +02:00
Jean-François B
e4c6963325
Merge pull request #5455 from jfbu/5453_PDF_howto_pagenumbers
...
Fix #5453 and move LaTeX ``\pagestyle`` to template
2018-09-20 20:32:25 +02:00
jfbu
94bb3e3057
Update CHANGES for #5455
2018-09-20 19:58:06 +02:00
jfbu
6f62c50557
Merge branch '1.8' into 5453_PDF_howto_pagenumbers
2018-09-20 19:56:51 +02:00
Takeshi KOMIYA
4b2836a4b3
Update CHANGES for PR #5457
2018-09-21 01:26:01 +09:00
Takeshi KOMIYA
271ea125f2
Merge branch '1.8'
2018-09-21 01:24:39 +09:00
Zejun Wu
84f6d9f16e
Fix TypeError in error message when override is prohibited
2018-09-21 01:24:04 +09:00
Takeshi KOMIYA
a912d90440
doc: app.info() should allow keyword argument
2018-09-20 20:32:41 +09:00
Takeshi KOMIYA
48d4a52276
doc: Update workaround for RTD
2018-09-20 20:29:56 +09:00
Takeshi KOMIYA
a4843cab2c
Fix typo
2018-09-20 20:27:25 +09:00
Takeshi KOMIYA
134bcde40b
Add workaround for RTD (refs: #5461 )
2018-09-20 20:17:21 +09:00
Takeshi KOMIYA
522105b79b
Merge branch '1.8'
2018-09-20 20:01:14 +09:00
Takeshi KOMIYA
bbb4593bfa
Merge pull request #5447 from tk0miya/5431_warnings_for_callable
...
Fix #5431 : autodoc: ``autofunction`` emits a warning for callable objects
2018-09-19 09:48:56 +09:00
jfbu
f1b7969a8c
Fix #5453 and move LaTeX `\pagestyle
` to template
2018-09-18 20:52:08 +02:00
Takeshi KOMIYA
c7f3933612
Merge branch '1.8' into 5431_warnings_for_callable
2018-09-18 23:34:33 +09:00