Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix COM812 | Adam Turner | 2023-02-18 | 1 | -1/+1 |
| | |||||
* | Run pyupgrade (#11070) | Adam Turner | 2023-01-02 | 1 | -1/+1 |
| | |||||
* | Use PEP 604 types | Adam Turner | 2023-01-01 | 1 | -2/+2 |
| | |||||
* | Use PEP 595 types | Adam Turner | 2023-01-01 | 1 | -18/+18 |
| | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 1 | -0/+2 |
| | |||||
* | Remove copyright and licence fields | Adam Turner | 2022-02-20 | 1 | -3/+0 |
| | |||||
* | Conform to PEP 257 summary line conventions | Adam Turner | 2022-02-20 | 1 | -1/+3 |
| | |||||
* | Fix module docstring indentation | Adam Turner | 2022-02-20 | 1 | -3/+3 |
| | |||||
* | 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 typing in docfields.py | Philipp A | 2022-01-11 | 1 | -1/+1 |
| | |||||
* | merge 'isinstance' calls (SIM101) | Daniel Eades | 2022-01-10 | 1 | -2/+1 |
| | |||||
* | 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 |
| | | |||||
* | | Fix some messages are still not translated | Takeshi KOMIYA | 2021-12-27 | 1 | -2/+2 |
|/ | |||||
* | DocFields, small fixes | Jakob Lykke Andersen | 2021-06-03 | 1 | -8/+5 |
| | |||||
* | fields, call roles instead of making a pending_xref | Jakob Lykke Andersen | 2021-06-03 | 1 | -24/+55 |
| | | | | Except for py which has mixins that assumes a single pending_xref | ||||
* | Fix #9224: info-field-list does not support a type containing space | Takeshi KOMIYA | 2021-05-15 | 1 | -1/+1 |
| | | | | | | | | | 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. | ||||
* | refactor: Add Optional to type annotations | Takeshi KOMIYA | 2021-05-03 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into refactor_type_annotation2 | Takeshi KOMIYA | 2021-04-08 | 1 | -6/+6 |
|\ | |||||
| * | refactor: Lazy loading is not needed for type annotations | Takeshi KOMIYA | 2021-04-04 | 1 | -6/+6 |
| | | |||||
* | | refactor: use raw Type for type annotations | Takeshi KOMIYA | 2021-04-04 | 1 | -2/+2 |
|/ | |||||
* | refactor: Use PEP-526 based variable annotation (sphinx.util) | Takeshi KOMIYA | 2021-03-10 | 1 | -6/+6 |
| | |||||
* | Merge branch '3.x' | Takeshi KOMIYA | 2021-01-01 | 1 | -1/+1 |
|\ | |||||
| * | A happy new year! | Takeshi KOMIYA | 2021-01-01 | 1 | -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 KOMIYA | 2020-12-20 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Fix #8365: py domain: :type: and :rtype: gives false ambiguous warnings | Takeshi KOMIYA | 2020-12-19 | 1 | -0/+1 |
| | | | | | | | | | | | | 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 KOMIYA | 2020-11-12 | 1 | -3/+2 |
|\ \ | |/ | |||||
| * | Sort imports with isort | François Freitag | 2020-11-11 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | Add stacklevel parameter to warnings.warn() call | Takeshi KOMIYA | 2020-05-03 | 1 | -2/+2 |
| | | |||||
* | | Remove deprecated features marked as RemovedInSphinx40Warning | Takeshi KOMIYA | 2020-04-29 | 1 | -22/+1 |
| | | |||||
* | | Hello TYPE_CHECKING! | Takeshi KOMIYA | 2020-03-07 | 1 | -3/+2 |
| | | |||||
* | | Deprecate codes for python 3.5 | Takeshi KOMIYA | 2020-03-07 | 1 | -2/+1 |
|/ | |||||
* | A happy new year! | Takeshi KOMIYA | 2020-01-01 | 1 | -1/+1 |
| | |||||
* | Fix #6474: ``DocFieldTransformer`` raises AttributeError | Takeshi KOMIYA | 2019-08-02 | 1 | -1/+8 |
| | |||||
* | Fix type annotation for python 3.5.1 | Takeshi KOMIYA | 2019-07-13 | 1 | -3/+4 |
| | |||||
* | Migrate to py3 style type annotation: sphinx.util.docfields | Takeshi KOMIYA | 2019-06-03 | 1 | -67/+32 |
| | |||||
* | Add ObjectDescription.get_field_type_map() | Takeshi KOMIYA | 2019-03-23 | 1 | -5/+7 |
| | | | | | Conceal caching mechanism of Field classes to ObjectDescription class. This deprecates DocFieldTransformer.preprocess_field_types(). | ||||
* | Clean up import for annotations | Takeshi KOMIYA | 2019-03-06 | 1 | -1/+0 |
| | |||||
* | Merge branch '1.8' | Takeshi KOMIYA | 2019-01-02 | 1 | -1/+1 |
|\ | |||||
| * | A happy new year! | Takeshi KOMIYA | 2019-01-02 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #5509 from stephenfin/remove-future-imports | Takeshi KOMIYA | 2018-12-17 | 1 | -1/+0 |
|\ \ | | | | | | | Remove future imports | ||||
| * | | py3: Remove (most) __future__ imports | Stephen Finucane | 2018-12-17 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two used: - print_function - absolute_import Both of these are mandatory in Python 3.0 onwards [1] and can therefore be removed...mostly. Unfortunately, mypy is still running in Python 2.7 mode, meaning we need the 'print_function' future wherever we're calling 'print' with the 'file' argument. There's also a single 'absolute_import' future that must be retained as its removal breaks a test for as-yet unknown reasons. TODOs are added to resolve both issues in the future. [1] https://docs.python.org/3/library/__future__.html Signed-off-by: Stephen Finucane <stephen@that.guru> | ||||
* | | | Remove unnecessary encoding cookie from Python source files | Jon Dufresne | 2018-12-16 | 1 | -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. | ||||
* | | Use Python 3 super() argument-less syntax | Jon Dufresne | 2018-12-15 | 1 | -2/+2 |
| | | | | | | | | | | | | The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super | ||||
* | | Replace all "unicode" type by "str" | Takeshi KOMIYA | 2018-12-15 | 1 | -22/+22 |
| | | |||||
* | | Fix annotaions for docfields | Takeshi KOMIYA | 2018-12-12 | 1 | -15/+15 |
| | | |||||
* | | Merge pull request #5740 from tk0miya/fix_typehints_for_TextlikeNode | Takeshi KOMIYA | 2018-12-10 | 1 | -3/+3 |
|\ \ | | | | | | | Add TextlikeNode type for docfields | ||||
| * | | Add TextlikeNode type for docfields | Takeshi KOMIYA | 2018-12-10 | 1 | -3/+3 |
| | | | |||||
* | | | Fix annotations | Takeshi KOMIYA | 2018-12-10 | 1 | -1/+1 |
|/ / |