summaryrefslogtreecommitdiff
path: root/tests/test_domain_py.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * py nodes, TupleJakob Lykke Andersen2021-10-021-7/+14
| |
| * py nodes, ListJakob Lykke Andersen2021-10-021-1/+3
| |
| * py nodes, BitOrJakob Lykke Andersen2021-10-021-5/+5
| |
* | Fix #9697: An index entry with parens was registered for py:methodTakeshi KOMIYA2021-10-031-1/+1
|/
* Fix #9576: py domain: Literal typehint was converted to a cross referenceTakeshi KOMIYA2021-09-031-0/+21
| | | | | The content of Literal typehint should not be converted to cross references.
* Fix #9585: py:property directive does not create a hyperlink for typesTakeshi KOMIYA2021-08-311-2/+4
|
* Cloase #9445: :py:property: directive now supports :classmethod: optionTakeshi KOMIYA2021-07-171-5/+19
| | | | | Since python 3.9, `classmethod` starts to support creating a "class property". This allows to describe it.
* Merge branch '4.x' into 9427Takeshi KOMIYA2021-07-111-15/+68
|\
| * Close #9268: python_use_unqualified_type_names supports type fieldTakeshi KOMIYA2021-06-031-0/+6
| |
| * Fix #9280: py domain: "exceptions" module is not displayedTakeshi KOMIYA2021-05-301-14/+2
| | | | | | | | | | | | | | | | | | | | Since v0.2, python domain gives a special treatment for the exceptions module to suppress its name on documenting exception classes. It had been worthy on python2 era. But the module has been removed since python3. Therefore, the special treatment becomes harmful for user libraries. This removes it to render module names correctly. Note: Now we've only supported python3. So this is not incompatible.
| * Close #1874: py domain: Support union types using `|` in info-field-listTakeshi KOMIYA2021-05-221-0/+34
| |
| * Fix #9224: info-field-list does not support a type containing spaceTakeshi KOMIYA2021-05-151-1/+26
| | | | | | | | | | | | | | | | | | So far, DocFieldTransformer has split the field name for `:type:` and `:param:` at the first whitespace. Therefore, it does not allow to use a type containing whitespace (ex. `Dict[str, str]`). This changes the splitting logic to divide the field name at the last whitespace (a.k.a `rstrip()`). It allows to use whitespaces on types.
* | py domain: Add testcase for empty callable (refs: #9427)Takeshi KOMIYA2021-07-111-0/+9
|/
* Fix #9205: py domain: canonical option causes xref resolution errorTakeshi KOMIYA2021-05-111-0/+11
| | | | | | The :canonical: option causes "more than one target for cross-reference" warning because the class having the same name is registered.
* Fix #9121: py domain: duplicated warning for canonical and aliasTakeshi KOMIYA2021-04-231-0/+33
| | | | | | A duplicated warning is emitted when both canonical and its alias objects are defined on the same document. But it should not be emitted because they're the same object, not conflicted.
* Fix #8127: py domain: Ellipsis in info-field-list causes nit-picky warningTakeshi KOMIYA2021-04-171-1/+24
| | | | | | | | | | On parsing the types, the leading dot of the ellipsis (...) is considered as a reference name. And its first dot is considered as a notation for relative type reference (ex. ".ClassName"). As a result, it was converted double dots unexpectedly. This changes the parsing rule to treat the ellipsis as a symbol, not a name.
* py domain: Add py:property directive to describe a property (refs: #7068)Takeshi KOMIYA2021-03-111-0/+27
|
* Fix #7199: py domain: Add a new confval: python_use_unqualified_type_namesTakeshi KOMIYA2021-03-061-0/+19
| | | | | | Add a new config variable: python_use_unqualified_type_names. If enabled, it goes to suppress the module name of the python reference if it can be resolved.
* Merge branch '3.x' into master_with_merged_3.xjfbu2021-02-021-0/+28
|\
| * py domain: Support type union operator (PEP-604) (refs: #8775)Takeshi KOMIYA2021-02-011-0/+28
| | | | | | | | | | | | Upgrade annotation parser for python domain to support type union operator introduced in PEP-604. It's available on all python interpreters.
* | Merge branch '3.x'Takeshi KOMIYA2021-01-161-0/+24
|\ \ | |/
| * test: Add testcase for relative/short xref for py domainTakeshi KOMIYA2021-01-111-0/+24
| |
* | Close #5977: :var: field do not create a cross-referenceTakeshi KOMIYA2021-01-011-3/+1
| | | | | | | | | | | | | | | | | | | | | | Since its beginning, `:var:` field has created a cross-reference to the attribute having the same name. It is meaningful only if the attribute is documented by `py:attribute` directive. It means the `:var:` field and `:attr:` role are almost the same and conflicted. Additionally, the cross-reference points incorrect variable if the target is not documented. Thus, the cross-reference feature of `:var:` field is disabled.
* | test: py domain: Add a testcase for :var: fieldTakeshi KOMIYA2021-01-011-0/+26
| |
* | Merge branch '3.x'Takeshi KOMIYA2021-01-011-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | | | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* | Merge branch '3.x'Takeshi KOMIYA2020-12-201-0/+47
|\ \ | |/
| * Fix #8365: py domain: :type: and :rtype: gives false ambiguous warningsTakeshi KOMIYA2020-12-191-0/+47
| | | | | | | | | | | | The searching context like py:module and py:class are missing in the pending_xref nodes generated from info-field-lists. This sets these searching context info to them.
* | Merge branch '3.x'Takeshi KOMIYA2020-11-121-8/+6
|\ \ | |/
| * Sort imports with isortFrançois Freitag2020-11-111-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip.
* | Merge branch '3.x'Takeshi KOMIYA2020-11-051-0/+8
|\ \ | |/
| * Fix #6914: Emit a detailed warning when failed to resolve :ref:Takeshi KOMIYA2020-11-031-0/+8
| | | | | | | | | | | | | | | | | | To be clear the ambiguous warning for missing-reference :ref:, this separates the warning to missing-label and missing-caption. To emit a warning dynamically, this also adds a new event: `warn-missing-reference` to customize warning messages via event handlers.
* | Merge branch '3.x'Takeshi KOMIYA2020-10-241-1/+22
|\ \ | |/
| * TST: Add testEric Larson2020-10-071-1/+9
| |
| * Fix #8255: py domain: number in defarg is changed to decimalTakeshi KOMIYA2020-10-051-0/+13
| | | | | | | | | | | | | | | | Number literals in default argument value is converted to decimal form unexpectedly by AST module. This fixes the signature parsing code to recosntruct it correctly. Note: This is only available in Python 3.8+.
* | Merge branch '3.x'Takeshi KOMIYA2020-08-011-0/+14
|\ \ | |/
| * Fix #8008: py domain: failed to parse a type annotation containing ellipsisTakeshi KOMIYA2020-07-301-0/+14
| | | | | | | | Fix _parse_annotation() does not support a type annotation having ellipsis.
* | Merge branch '3.x'Takeshi KOMIYA2020-07-241-13/+22
|\ \ | |/
| * Fix #7928: py domain: failed to resolve a type annotation for the attributeTakeshi KOMIYA2020-07-091-13/+22
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-07-051-0/+16
|\ \ | |/
| * Add tests for noindexentryJakob Lykke Andersen2020-07-051-0/+16
| |
* | Merge tag 'v3.1.1'Takeshi KOMIYA2020-07-051-2/+5
|\ \ | |/
| * Fix #7808: autodoc: Warnings raised on variable and attribute type annotationsTakeshi KOMIYA2020-06-101-2/+5
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-05-171-10/+12
|\ \ | |/
| * ... and don't break tests.Jakob Lykke Andersen2020-05-141-8/+8
| |
| * Close #7596: py domain: Change a type annotation for variables to a hyperlinkTakeshi KOMIYA2020-05-041-2/+4
| |
* | py domain: Add :canonical: optionTakeshi KOMIYA2020-05-041-23/+40
|/
* Close #7143: py domain: Add :final: option to py:*: directivesTakeshi KOMIYA2020-04-281-1/+43
|
* Fix #7510: py domain: keyword-only arguments are wrongly renderedTakeshi KOMIYA2020-04-191-9/+3
|
* Fix #7461: py domain: fails with IndexError for empty tuple in type annotationTakeshi KOMIYA2020-04-121-0/+7
|