Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | refactor: py domain: Separate parse_reftarget() from type_to_xref() | Takeshi KOMIYA | 2021-12-27 | 1 | -21/+29 | |
| | | | ||||||
| * | | py domain: Suppress the leading "typing." module from typehints | Takeshi KOMIYA | 2021-12-25 | 1 | -1/+3 | |
| | | | | | | | | | | | | | | | | | | | | | To support creating hyperlinks to container types naturally, py domain should take fully-qualified typehints for them. But nobody wants to show "typing." module name on the signature. So this suppresses them automatically. | |||||
| * | | Fix #9194: autodoc: types in typing module are not hyperlinked | Takeshi KOMIYA | 2021-12-25 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | | This converts types in typing module to valid references when `autodoc_unqualified_typehints` option enabled. | |||||
| * | | Fix autodoc: Failed to parse Literal type in py36 and py37 | Takeshi KOMIYA | 2021-12-25 | 1 | -1/+7 | |
| |/ | ||||||
* | | refactor: Remove RemovedInSphinx50Warning (partially) | Takeshi KOMIYA | 2021-12-17 | 1 | -29/+2 | |
|/ | ||||||
* | py domain: Allow "~" prefix as a prefix of typehints in signature | Takeshi KOMIYA | 2021-11-30 | 1 | -5/+19 | |
| | | | | | | | | | | Now python domain supports the "~" prefix at the beginning of the typehints of the function signatures: .. py:function:: func(x: ~typing.Dict) It's rescognized as the same as python reference roles do (ex. :py:class:`~typing.Dict`). | |||||
* | Fix #9899: py domain: Allows cross-reference specifier to :type: option | Takeshi KOMIYA | 2021-11-29 | 1 | -3/+15 | |
| | ||||||
* | Fix the type of deprecation warning for get_signature_prefix (refs: #9833) | Takeshi KOMIYA | 2021-11-11 | 1 | -2/+2 | |
| | ||||||
* | Use warnings.warn and deprecation warning | Jakob Lykke Andersen | 2021-11-09 | 1 | -4/+6 | |
| | ||||||
* | Fix lint errors | Jakob Lykke Andersen | 2021-11-09 | 1 | -4/+6 | |
| | ||||||
* | Make fallback for changed get_signature_prefix() | Jakob Lykke Andersen | 2021-11-09 | 1 | -1/+7 | |
| | | | | Fixes sphinx-doc/sphinx#9832 | |||||
* | Fix #9775: py domain: Literal typehint was converted to a cross reference | Takeshi KOMIYA | 2021-10-30 | 1 | -1/+5 | |
| | ||||||
* | Support docutils-0.18: Consume iterator of Element.traverse() | Takeshi KOMIYA | 2021-10-27 | 1 | -1/+1 | |
| | | | | | | | Since 0.18, Element.traverse() returns an iterator instead of intermediate object. As a result, the return value is always considered as truthy value. And it becomes fragile when the caller modifies the doctree on the loop. | |||||
* | Merge branch '4.x' into 9697_property_with_parens | Takeshi KOMIYA | 2021-10-09 | 1 | -41/+81 | |
|\ | ||||||
| * | js/py nodes, update arglist rendering | Jakob Lykke Andersen | 2021-10-03 | 1 | -1/+2 | |
| | | ||||||
| * | py nodes, Constant None | Jakob Lykke Andersen | 2021-10-02 | 1 | -0/+2 | |
| | | ||||||
| * | py nodes, PyObject anno | Jakob Lykke Andersen | 2021-10-02 | 1 | -1/+9 | |
| | | ||||||
| * | py nodes, get_signature_prefix cleanup | Jakob Lykke Andersen | 2021-10-02 | 1 | -4/+1 | |
| | | ||||||
| * | py nodes, PyProperty get_signature_prefix | Jakob Lykke Andersen | 2021-10-02 | 1 | -6/+9 | |
| | | ||||||
| * | py nodes, PyMethod get_signature_prefix | Jakob Lykke Andersen | 2021-10-02 | 1 | -13/+15 | |
| | | ||||||
| * | py nodes, PyClassLike, get_signature_prefix | Jakob Lykke Andersen | 2021-10-02 | 1 | -3/+4 | |
| | | ||||||
| * | py nodes, PyFunction get_signature_prefix | Jakob Lykke Andersen | 2021-10-02 | 1 | -3/+4 | |
| | | ||||||
| * | py nodes, prep for get_signature_prefix change | Jakob Lykke Andersen | 2021-10-02 | 1 | -3/+6 | |
| | | ||||||
| * | py nodes, PyProperty | Jakob Lykke Andersen | 2021-10-02 | 1 | -1/+4 | |
| | | ||||||
| * | py nodes, PyAttribute value | Jakob Lykke Andersen | 2021-10-02 | 1 | -1/+5 | |
| | | ||||||
| * | py nodes, PyAttribute type | Jakob Lykke Andersen | 2021-10-02 | 1 | -1/+4 | |
| | | ||||||
| * | py nodes, PyVariable value | Jakob Lykke Andersen | 2021-10-02 | 1 | -1/+5 | |
| | | ||||||
| * | py nodes, PyVariable type | Jakob Lykke Andersen | 2021-10-02 | 1 | -1/+3 | |
| | | ||||||
| * | py nodes, arglist | Jakob Lykke Andersen | 2021-10-02 | 1 | -3/+3 | |
| | | ||||||
| * | py nodes, Tuple | Jakob Lykke Andersen | 2021-10-02 | 1 | -1/+3 | |
| | | ||||||
| * | py nodes, List | Jakob Lykke Andersen | 2021-10-02 | 1 | -1/+3 | |
| | | ||||||
| * | py nodes, BitOr | Jakob Lykke Andersen | 2021-10-02 | 1 | -1/+3 | |
| | | ||||||
* | | Fix #9697: An index entry with parens was registered for py:method | Takeshi KOMIYA | 2021-10-03 | 1 | -1/+1 | |
|/ | ||||||
* | Fix typos discovered by codespell | Christian Clauss | 2021-09-08 | 1 | -1/+1 | |
| | ||||||
* | Fix #9576: py domain: Literal typehint was converted to a cross reference | Takeshi KOMIYA | 2021-09-03 | 1 | -2/+10 | |
| | | | | | The content of Literal typehint should not be converted to cross references. | |||||
* | Fix #9585: py:property directive does not create a hyperlink for types | Takeshi KOMIYA | 2021-08-31 | 1 | -1/+2 | |
| | ||||||
* | Cloase #9445: :py:property: directive now supports :classmethod: option | Takeshi KOMIYA | 2021-07-17 | 1 | -2/+6 | |
| | | | | | Since python 3.9, `classmethod` starts to support creating a "class property". This allows to describe it. | |||||
* | Merge branch '4.x' into 9427 | Takeshi KOMIYA | 2021-07-11 | 1 | -22/+35 | |
|\ | ||||||
| * | fields, call roles instead of making a pending_xref | Jakob Lykke Andersen | 2021-06-03 | 1 | -8/+18 | |
| | | | | | | | | Except for py which has mixins that assumes a single pending_xref | |||||
| * | Close #9268: python_use_unqualified_type_names supports type field | Takeshi KOMIYA | 2021-06-03 | 1 | -0/+10 | |
| | | ||||||
| * | Fix #9280: py domain: "exceptions" module is not displayed | Takeshi KOMIYA | 2021-05-30 | 1 | -6/+3 | |
| | | | | | | | | | | | | | | | | | | | | 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. | |||||
| * | Merge pull request #9258 from tk0miya/1874_piped_types_in_info-field-list | Takeshi KOMIYA | 2021-05-23 | 1 | -1/+1 | |
| |\ | | | | | | | Close #1874: py domain: Support union types using `|` in info-field-list | |||||
| | * | Close #1874: py domain: Support union types using `|` in info-field-list | Takeshi KOMIYA | 2021-05-22 | 1 | -1/+1 | |
| | | | ||||||
| * | | refactor: reduce calls of find_pending_xref_conditions (refs: #9240) | Takeshi KOMIYA | 2021-05-22 | 1 | -4/+0 | |
| |/ | | | | | | | | | | | | | After #9246, `find_pending_xref_conditions()` should be only called from intended modules. At present, the Python Domain is the only module to call it intendedly. Therefore, this removes the needless calls of the utility function from "unintended" modules. | |||||
| * | Merge branch '4.0.x' into 4.x | Takeshi KOMIYA | 2021-05-11 | 1 | -3/+7 | |
| |\ | ||||||
| * | | refactor: Add Optional to type annotations | Takeshi KOMIYA | 2021-05-10 | 1 | -3/+3 | |
| | | | ||||||
* | | | Closes #9418: Fix missing bracket for empty Callable annotations. | Thomas Jungers | 2021-07-09 | 1 | -4/+8 | |
| |/ |/| | ||||||
* | | Fix #9205: py domain: canonical option causes xref resolution error | Takeshi KOMIYA | 2021-05-11 | 1 | -3/+7 | |
|/ | | | | | | The :canonical: option causes "more than one target for cross-reference" warning because the class having the same name is registered. | |||||
* | Merge pull request #9118 from chrisjsewell/fix-typing | Takeshi KOMIYA | 2021-04-24 | 1 | -1/+1 | |
|\ | | | | | 🐛 FIX: `Config.__getitem__` typing | |||||
| * | remove type: ignore | Chris Sewell | 2021-04-23 | 1 | -1/+1 | |
| | |