summaryrefslogtreecommitdiff
path: root/sphinx/domains/python.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Remove use of six.iteritems()Jon Dufresne2018-09-111-5/+4
| |/ | | | | | | In Python 3, dict.items() is always an iterator.
* | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-2/+2
|/ | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* Merge branch '1.7'Takeshi KOMIYA2018-07-171-1/+9
|\
| * Fix py domain: rtype field could not handle "None" as a type (refs: #4946)Takeshi KOMIYA2018-07-151-1/+9
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-05-211-1/+9
|\ \ | |/
| * Fix #4946: py domain: type field could not handle "None" as a typeTakeshi KOMIYA2018-05-191-1/+9
| |
* | refactor: Replace Directive by SphinxDirectiveTakeshi KOMIYA2018-05-111-13/+12
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-04-261-21/+5
|\ \ | |/
| * Revert f4f693eff7b081785cc5704a6ff22cf0371355f3Takeshi KOMIYA2018-04-261-21/+5
| |
| * fix issue #4885Shingo Kitagawa2018-04-241-1/+1
| | | | | | | | https://github.com/sphinx-doc/sphinx/issues/4885
* | fix issue #4885Shingo Kitagawa2018-04-231-1/+1
| | | | | | | | https://github.com/sphinx-doc/sphinx/issues/4885
* | Merge branch '1.7'Takeshi KOMIYA2018-04-231-4/+21
|\ \ | |/
| * #4459: duplicated labels detector does not work well in parallel buildTakeshi KOMIYA2018-04-221-4/+21
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
|\ \ | |/
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge commit '6694981dd6939ab876b27d4e20a8128561c307ac'Takeshi KOMIYA2018-03-151-1/+1
|\ \ | |/
| * Fix pydomain: always strip parenthesis if empty (refs: #1042)Takeshi KOMIYA2018-03-031-1/+1
| |
* | Make console and warning messages translatableTakeshi KOMIYA2018-03-031-2/+2
| |
* | refactor: Move pairindextypes to sphinx.domains.pythonTakeshi KOMIYA2018-03-031-1/+20
| |
* | Replace ``l_()`` by ``_()``Takeshi KOMIYA2018-02-251-17/+17
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-2/+2
|\ \ | |/
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
| |
* | Merge branch '1.7-release'Takeshi KOMIYA2018-01-311-6/+5
|\ \ | |/
| * Use flake8-import-orderTakeshi KOMIYA2018-01-281-6/+5
| |
* | Close #4460: extensions should return the version of data structure as metadataTakeshi KOMIYA2018-01-251-0/+1
|/
* Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-10-231-0/+10
|\ \ | |/
| * Fix #3739: ``:module:`` option is ignored at content of pyobjectsTakeshi KOMIYA2017-10-211-0/+10
| |
* | Merge branch 'master' into 3866_suppress_pydomain_ref_warningTakeshi KOMIYA2017-07-171-3/+3
|\ \
| * | Python rtypes should match classes, not all objectsSam Park2017-07-151-1/+1
| | |
| * | Python parameter/variable types should match classes, not all objectsAndy Freeland2017-07-121-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parameter and variable types in the Python domain have the counter-intuitive behavior of matching instance methods (or likely any other objects) rather than classes, e.g.: ```python class Foo(object): def list(self): """List some things.""" def bar(x): """ :param x: x :type x: list """ ``` `bar()` will link to `Foo.list()` rather than the standard library `list` type.
* | Fix #3866: Suppress a new warning type: python refsTakeshi KOMIYA2017-06-171-1/+1
|/
* Merge branch 'stable' into 1.6-releaseTakeshi KOMIYA2017-05-131-1/+1
|\
| * Fix #3320: Warning about reference target not being found for container typesTakeshi KOMIYA2017-05-131-1/+1
| |
* | Fix #3351: intersphinx does not refers contextTakeshi KOMIYA2017-04-161-0/+10
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-04-041-2/+1
|\ \ | |/
| * Fix #3597: python domain raises UnboundLocalError if invalid name givenTakeshi KOMIYA2017-04-021-2/+1
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\ \ | |/
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-03-181-19/+52
|\ \ | |/
| * Merge pull request #3520 from agjohnson/fix-domain-py-nestingTakeshi KOMIYA2017-03-181-17/+54
| |\ | | | | | | Fix Python domain nesting
| | * Review feedback, cleanup, and docsAnthony Johnson2017-03-151-25/+26
| | |
| | * Fix Python domain nestingAnthony Johnson2017-03-061-17/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved #3465 here, to address this in `stable` instead. This fixes a problem with the Python domain object nesting. Because only one object name was stored in `ref_context`, and reset to `None` in `after_content`, nesting broke if you put anything after a nested class: ```rst .. py:class:: Parent .. py:method:: foo() This wouldn't resolve: :py:meth:`bar` .. py:class:: Child In the `after_content` method, the object is reset to `None`, so anything after this in the same nesting is considered to be top level instead. .. py:method:: bar() This is top level, as the domain thinks the surrounding object is `None` ``` This depends on #3519 and can be rebased after that is merged into stable Fixes #3065 Refs #3067
* | | Split some long type-checking annotation linesjfbu2017-03-121-6/+18
| | |
* | | Merge branch 'stable'jfbu2017-03-121-6/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts resolved: sphinx/domains/cpp.py sphinx/domains/python.py sphinx/texinputs/sphinx.sty sphinx/util/docfields.py sphinx/writers/latex.py tests/test_build_latex.py Also updated: sphinx/domains/__init__.py
| * | Make docfield xref changes backwards compatibleJakob Lykke Andersen2017-03-111-8/+8
| | |
| * | Add callback on domains for xrefs from fields.Jakob Lykke Andersen2017-03-081-4/+4
| |/ | | | | | | | | Fixes sphinx-doc/sphinx#2607. Fixes sphinx-doc/sphinx#2665.
* | Upgrade to mypy-0.5Takeshi KOMIYA2017-03-031-1/+1
| |
* | Reduce DeprecationWarnings for regexpTakeshi KOMIYA2017-02-171-1/+1
| |