Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Expand the mypy whitelist for 'sphinx.util' (#11406) | danieleades | 2023-05-12 | 1 | -1/+1 |
| | |||||
* | Improve static typing in ``intersphinx`` et al | Adam Turner | 2023-03-17 | 1 | -1/+6 |
| | |||||
* | Fix COM812 | Adam Turner | 2023-02-18 | 1 | -2/+2 |
| | |||||
* | Resolve Ruff SIM114 violations | Adam Turner | 2023-02-15 | 1 | -12/+11 |
| | |||||
* | Replace deprecation tooling with module level ``__getattr__`` (#11054) | Adam Turner | 2023-01-08 | 1 | -10/+15 |
| | |||||
* | Use PEP 604 display for ``typing.Optional`` and ``typing.Union`` (#11072) | Adam Turner | 2023-01-02 | 1 | -68/+84 |
| | |||||
* | Run pyupgrade (#11070) | Adam Turner | 2023-01-02 | 1 | -23/+20 |
| | |||||
* | Use PEP 604 types | Adam Turner | 2023-01-01 | 1 | -3/+3 |
| | |||||
* | Use PEP 595 types | Adam Turner | 2023-01-01 | 1 | -18/+24 |
| | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 1 | -0/+2 |
| | |||||
* | Merge ``_py37`` functions in ``util.typing`` | Adam Turner | 2022-10-17 | 1 | -245/+54 |
| | | | | | - restify and _restify_py37 - stringify and _stringify_py37 | ||||
* | Clean up after dropping Python 3.6 | Adam Turner | 2022-09-27 | 1 | -18/+5 |
| | |||||
* | Merge branch '5.x' | Adam Turner | 2022-09-27 | 1 | -8/+8 |
|\ | |||||
| * | Fix mypy violations for v0.981 (#10875) | Adam Turner | 2022-09-27 | 1 | -8/+8 |
| | | |||||
* | | Merge branch '5.x' | Jean-François B | 2022-08-06 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Fix flake8 5.0.0 reported formatting errors | daniel.eades | 2022-08-01 | 1 | -1/+2 |
| | | |||||
* | | Merge branch '5.x' | Adam Turner | 2022-07-18 | 1 | -1/+3 |
|\ \ | |/ | | | | | | | | | # Conflicts: # sphinx/ext/autodoc/__init__.py # sphinx/writers/html5.py | ||||
| * | Improve static typing strictness (#10569) | danieleades | 2022-07-18 | 1 | -1/+3 |
| | | |||||
* | | Merge branch '5.x' | Adam Turner | 2022-06-16 | 1 | -5/+0 |
|\ \ | |/ | | | | | | | | | | | # Conflicts: # .github/workflows/builddoc.yml # .github/workflows/lint.yml # sphinx/registry.py | ||||
| * | Remove traces of Python 2 and 3.5 (#10560) | Adam Turner | 2022-06-16 | 1 | -5/+0 |
| | | |||||
* | | Remove deprecated items for Sphinx 6.0 (#10471) | Adam Turner | 2022-06-16 | 1 | -9/+1 |
| | | |||||
* | | Drop python 3.6 support (#10468) | Takeshi KOMIYA | 2022-06-16 | 1 | -9/+9 |
|/ | |||||
* | Fix test_restify | Adam Turner | 2022-04-09 | 1 | -0/+3 |
| | |||||
* | Collapse single line docstrings | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | |||||
* | Remove copyright and licence fields | Adam Turner | 2022-02-20 | 1 | -3/+0 |
| | |||||
* | Fix module docstring indentation | Adam Turner | 2022-02-20 | 1 | -2/+2 |
| | |||||
* | Fix module docstring first line | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | |||||
* | Remove module titles in docstrings | Adam Turner | 2022-02-19 | 1 | -3/+0 |
| | |||||
* | Fix #9971: autodoc: TypeError for annotation with unhashable object | Takeshi KOMIYA | 2022-02-11 | 1 | -2/+10 |
| | | | | | restify() and stringify() fails with TypeError when unhashable object is given. | ||||
* | Fix #10133: autodoc: Crashed when mocked module is used for type annotation | Takeshi KOMIYA | 2022-01-30 | 1 | -0/+10 |
| | |||||
* | Merge pull request #10034 from tk0miya/10027_autodoc_typehints_format_for_bases | Takeshi KOMIYA | 2022-01-02 | 1 | -37/+60 |
|\ | | | | | Fix #10027: autodoc_typehints_format does not work with :show-inheritance: | ||||
| * | Add `mode` parameter to sphinx.util.typing:restify() | Takeshi KOMIYA | 2022-01-01 | 1 | -37/+60 |
| | | | | | | | | | | | | To make the typehints in "Bases" field simple, this adds a new parameter `mode` to sphinx.util.typing:restify() to suppress the leading module name from typehints in "Bases" field. | ||||
* | | Merge branch '4.3.x' into 4.x | Takeshi KOMIYA | 2022-01-01 | 1 | -1/+1 |
|\ \ | |/ |/| | |||||
| * | A happy new year! | Takeshi KOMIYA | 2022-01-01 | 1 | -1/+1 |
| | | |||||
* | | refactor: Merge arguments of sphinx.util.typing:stringify() | Takeshi KOMIYA | 2021-12-26 | 1 | -41/+43 |
| | | |||||
* | | Fix #9194: autodoc: Prepend the "typing" module name on the signature | Takeshi KOMIYA | 2021-12-26 | 1 | -21/+31 |
|/ | | | | | To create hyperlinks to container types automatically, this prepends the module names for the types under "typing" module. | ||||
* | Add `smartref` parameter to sphinx.util.typing:stringify() | Takeshi KOMIYA | 2021-12-03 | 1 | -46/+72 |
| | | | | | | To make the generated function signatures simple, this adds a new parameter `smartref` to sphinx.util.typing:stringify() to suppress the leading module name from typehints. | ||||
* | ntersphinx_disabled_refs, type rename | Jakob Lykke Andersen | 2021-10-31 | 1 | -2/+2 |
| | |||||
* | Intersphinx, refactoring | Jakob Lykke Andersen | 2021-10-31 | 1 | -1/+2 |
| | | | | Also, when a reference is unresolved, don't strip the inventory prefix. | ||||
* | Make util.typing.restify sanitise unreproducible output (eg. memory addresses) | Chris Lamb | 2021-10-23 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | Whilst working on the Reproducible Builds effort [0] I noticed that sphinx generates output that is not reproducible, causing a number of packages in Debian to unreproducible. Specifically, when Sphinx locates an alias of an instance when generating 'autodoc' documentation, it uses the raw Python repr(...) of the object and does not sanitise it for memory addresses (etc.) like elsewhere in Sphinx. This can result in documentation like this: -<dd><p>alias of <webob.client.SendRequest object at 0x7fd769189df0></p> +<dd><p>alias of <webob.client.SendRequest object at 0x7f0f02233df0></p> Patch attached that uses the object_description method, which was added to fix precisely this kind of issue. I originally filed this in Debian as bug #996948 [1]. [0] https://reproducible-builds.org/ [1] https://bugs.debian.org/996948 | ||||
* | Close #9664: autodoc: autodoc-process-bases supports reST snippet | Takeshi KOMIYA | 2021-09-23 | 1 | -0/+2 |
| | | | | | | This allows to inject a reST snippet through autodoc-process-bases event. It helps to modify the base classes of any class to the expected mark-up'ed text by custom extension. | ||||
* | Fix #9630: autodoc: Failed to build xrefs if primary_domain is not 'py' | Takeshi KOMIYA | 2021-09-14 | 1 | -34/+34 |
| | | | | | | | | Autodoc generates reST code that uses raw `:obj:` and `:class:` xrefs to refer the classes and types. But they're fragile because they assume the primary_domain=='py'. This adds `:py:` prefix to these xrefs to make them robust. | ||||
* | Merge pull request #9611 from tk0miya/9560_NewType_module | Takeshi KOMIYA | 2021-09-11 | 1 | -3/+11 |
|\ | | | | | Close #9560: autodoc: Allow to refer NewType with modname in py310+ | ||||
| * | Close #9560: autodoc: Allow to refer NewType with modname in py310+ | Takeshi KOMIYA | 2021-09-05 | 1 | -3/+11 |
| | | | | | | | | | | | | Before 3.10, an instance of NewType has incorrect module name. But it was fixed on 3.10. This starts to use the module info if the interpreter is 3.10+. | ||||
* | | Fix typos discovered by codespell | Christian Clauss | 2021-09-08 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #9590 from tk0miya/9589_Annotated | Takeshi KOMIYA | 2021-08-29 | 1 | -0/+2 |
|\ | | | | | Fix #9589: autodoc: typing.Annotated has wrongly been rendered | ||||
| * | Fix #9589: autodoc: typing.Annotated has wrongly been rendered | Takeshi KOMIYA | 2021-08-29 | 1 | -0/+2 |
| | | | | | | | | | | At the HEAD of 3.10, the implementation of `typing.Annotated` has been changed to have __qualname__. | ||||
* | | Merge branch '4.1.x' into 4.x | Takeshi KOMIYA | 2021-08-11 | 1 | -8/+6 |
|\ \ | |/ | |||||
| * | Fix #9537: autodoc: Some typing.* objects are broken | Takeshi KOMIYA | 2021-08-11 | 1 | -2/+4 |
| | | | | | | | | | | At the HEAD of 3.10, the implementation of `typing._GenericAlias` has been changed to have correct _name and __name__. | ||||
| * | Fix #9504: autodoc: generate incorrect reference to the parent class | Takeshi KOMIYA | 2021-07-31 | 1 | -6/+2 |
| | | | | | | | | | | | | | | | | | | Autodoc generates incorrect references to the parent class the target class inherites the class having `_name` attribute. It conciders the parent is a kind of SpecialForm'ed class by mistake. This uses `isinstance(X, SpecialForm)` to check that. Note: SpecialForm became a class since Python 3.7. |