summaryrefslogtreecommitdiff
path: root/sphinx/util/typing.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix #8219: autodoc: Parameters for generic base class are not shownTakeshi KOMIYA2020-11-091-1/+194
| |
* | Remove additional mentions of Python 3.5François Freitag2020-11-071-1/+1
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-10-241-2/+2
|\ \ | |/
| * Merge branch '3.x' into 3.2.x_to_3.xTakeshi KOMIYA2020-10-241-2/+9
| |\
| * | Fix mypy violations (with mypy-0.790)Takeshi KOMIYA2020-10-241-2/+2
| | |
* | | Merge branch '3.x' into masterTakeshi KOMIYA2020-10-041-2/+9
|\ \ \ | | |/ | |/|
| * | Fix #8157: autodoc: TypeError is raised when annotation has invalid __args__Takeshi KOMIYA2020-10-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Typically, the __args__ attribute of type annotations is a tuple containing arguments for the types (ex. The __args__ of `List[int]` is `(int,)`). But some kind of types has non tuple __args__ attribute. For example, `nptyping.NDArray` is one of them. This fixes the TypeError when the invalid __args__ attribute found.
| * | Close #6518: autodoc: Add autodoc_type_aliasesTakeshi KOMIYA2020-10-031-1/+5
| |/ | | | | | | | | autodoc_type_aliases allows to keep user defined type alises not evaluated in the generated document.
* | Merge branch '3.x'Takeshi KOMIYA2020-07-241-1/+18
|\ \ | |/
| * Fix #7983: autodoc: Generator type annotation is wrongly rendered in py36Takeshi KOMIYA2020-07-191-1/+3
| | | | | | | | | | This adds a special handler (if-branch) for Generator type to stringify them correctly. So far, they have been considered as a kind of Callable.
| * Fix #7901: autodoc: annotations for overloaded functions are not resolvedTakeshi KOMIYA2020-07-111-0/+15
| | | | | | | | | | | | So far, type annotations for overloaded functions are not resolved because they are obtained from AST directly. This tries to evaluate them using a context of its function or method.
* | Merge branch '3.x'Takeshi KOMIYA2020-06-041-3/+3
|\ \ | |/
| * Merge branch '3.0.x' into 3.xTakeshi KOMIYA2020-06-031-4/+4
| |\
| | * Fix mypy violations (with mypy-0.780)Takeshi KOMIYA2020-06-031-4/+4
| | |
| | * Suppress arguments if all system defined TypeVars on py39Takeshi KOMIYA2020-05-091-1/+8
| | |
* | | Merge branch '3.x'Takeshi KOMIYA2020-05-171-6/+21
|\ \ \ | |/ /
| * | Make sphinx.util.typing.stringify render optional unions betterJohn R. Lenton2020-05-111-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Without this change, stringify(Optional[Union[int, str]]) returns 'Union[int, str, None]' rather than the expected 'Optional[...]'. This change fixes that. fixes: #7654
| * | Suppress arguments if all system defined TypeVars on py39Takeshi KOMIYA2020-05-091-1/+8
| |/
* | Merge branch '3.x'Takeshi KOMIYA2020-04-281-2/+7
|\ \ | |/
| * Do not emit type arguments twiceEric Wieser2020-04-271-2/+7
| | | | | | | | Fixes gh-7567
* | Deprecate codes for python 3.5Takeshi KOMIYA2020-03-071-49/+9
|/
* Close #7165: autodoc: Support Annotated type (PEP-593)Takeshi KOMIYA2020-03-031-1/+4
|
* Add sphinx.util.typing:stringify() to represent annotations as stringTakeshi KOMIYA2020-01-051-1/+153
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* refactor: correct interface of directive() and role() to docutils'Takeshi KOMIYA2019-06-091-1/+1
|
* Migrate to py3 style type annotation: sphinx.utilTakeshi KOMIYA2019-06-021-0/+3
|
* refactor: Move NoneType to sphinx.util.typingTakeshi KOMIYA2019-02-111-0/+3
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Replace use of six.text_type with strJon Dufresne2018-12-181-3/+2
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | Add comment for Inventory typeTakeshi KOMIYA2018-12-171-0/+1
| |
* | Merge pull request #5817 from jdufresne/inventory-typingTakeshi KOMIYA2018-12-171-0/+2
|\ \ | | | | | | Define a common Inventory type for reuse across modules
| * | Define a common Inventory type for reuse across modulesJon Dufresne2018-12-161-0/+2
| | |
* | | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-8/+1
| |
* | Add TextlikeNode type for docfieldsTakeshi KOMIYA2018-12-101-1/+4
| |
* | Remove N_co type (unused)Takeshi KOMIYA2018-12-081-4/+1
| |
* | Add DirectiveOption type to an entry of Directive.option_specTakeshi KOMIYA2018-12-071-1/+3
| |
* | Fix annotations for directivesTakeshi KOMIYA2018-11-291-1/+4
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-1/+9
| |
* | Adjust type annotations for roles to docutils'Takeshi KOMIYA2018-11-231-1/+1
| |
* | Fix type annotations for RoleFunctionTakeshi KOMIYA2018-11-111-3/+2
| |
* | Fix typehints: sphinx.domainsTakeshi KOMIYA2018-11-061-2/+3
| |
* | refactoring: Drop PY2 and PY3 flagsTakeshi KOMIYA2018-09-221-6/+3
|/
* refactor: Store enumerable_nodes to registryTakeshi KOMIYA2018-02-201-0/+3
|
* Use flake8-import-orderTakeshi KOMIYA2018-01-281-1/+1
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Year++Takeshi KOMIYA2017-03-261-1/+1
|
* Upgrade to mypy-0.5Takeshi KOMIYA2017-03-031-0/+24