summaryrefslogtreecommitdiff
path: root/sphinx/ext/inheritance_diagram.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix COM812Adam Turner2023-02-181-5/+5
|
* Adopt ``profile = "black"`` for ``isort``Adam Turner2023-01-071-2/+7
| | | | This allows using Ruff's import sorting fixers
* Run pyupgrade (#11070)Adam Turner2023-01-021-1/+1
|
* Use PEP 604 typesAdam Turner2023-01-011-4/+4
|
* Use PEP 595 typesAdam Turner2023-01-011-18/+18
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Factor out HTML 4 translator (#11051)Adam Turner2022-12-301-2/+2
| | | Move the HTML 4 translator into a private module.
* Improve static typing strictness (#10569)danieleades2022-07-181-7/+11
|
* Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
|
* Fix module docstring indentationAdam Turner2022-02-201-21/+21
|
* Fix module docstring first lineAdam Turner2022-02-201-2/+1
|
* Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* refactor: Use PEP-526 based variable annotation (sphinx.ext)Takeshi KOMIYA2021-03-151-3/+3
|
* refactor: Add a type alias for the option_spec of directives; OptionSpecTakeshi KOMIYA2021-03-131-1/+2
|
* 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
* Sort imports with isortFrançois Freitag2020-11-111-7/+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.
* Fixes #8146: When identifying bases, only use classes from builtinsGaurav Lalchandani2020-08-221-1/+4
| | | | | | | | | | | | In inheritance_diagram extension, while iterating over bases, we verify if the base class is one of the Python built-in class or not. As of now, we simply check for its presence in all `builtins` objects. Please note, `builtins` not only has built-in classes, but also functions (like `open`) and other built-in objects. To avoid any sort of future problem, it seems better to only use classes (and of course exception classes).
* Rename fips_safe_md5 to md5Lars Hupfeldt2020-05-051-2/+2
|
* Introduce fips_safe_md5, see issue #7611Lars Hupfeldt2020-05-051-2/+2
|
* Merge branch 'master' into 5637Takeshi KOMIYA2020-02-121-62/+57
|\
| * Merge branch '2.0'Takeshi KOMIYA2020-01-011-1/+1
| |\
| | * A happy new year!Takeshi KOMIYA2020-01-011-1/+1
| | |
| * | Make SVG inheritance diagrams transparentEric Wieser2019-12-091-1/+3
| |/ | | | | Previously they would be emitted with a white background
| * Fix mypy violations (for mypy-0.730)Takeshi KOMIYA2019-10-061-1/+1
| |
| * Switch uses of __import__ to importlib.get_module()Jon Dufresne2019-08-171-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Python docs for __import__ recommend using importlib.get_module(). https://docs.python.org/3/library/functions.html#__import__ > Note: This is an advanced function that is not needed in everyday > Python programming, unlike importlib.import_module(). As importlib.get_module() uses the Python module cache and returns the module, this also allows simplifying many module cache checks of use of sys.modules. importlib.get_module() has been available since Python 3.3.
| * Migrate to py3 style type annotation: sphinx.ext.inheritance_diagramTakeshi KOMIYA2019-07-041-48/+33
| |
| * Fix docs of inheritance-diagram "parts" optionMichael Goerz2019-03-101-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation now correctly describes the behavior of the ``parts`` option in an inheritance-diagram directive: it gives the number of parts that are *kept* not dropped. The option now also accepts negative values, which drops parts from the left (which is the what the documentation incorrectly claimed the option would do for positive values) As a form of testing of the new functionality, the documentation for the inheritance_diagram extension now includes a section "Examples" that demonstrate the different possibilities. This would fail to build without the patch. Closes #4872
| * Clean up import for annotationsTakeshi KOMIYA2019-03-061-1/+1
| |
* | Merge branch 'master' into masterBrendt Wohlberg2019-02-281-35/+43
|\ \ | |/
| * Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
| |\
| | * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| | |
| * | Merge pull request #5819 from jdufresne/coding-commentTakeshi KOMIYA2018-12-171-1/+0
| |\ \ | | | | | | | | Remove unnecessary encoding cookie from Python source files
| | * | 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.
| * | | Pass exceptions directly to docutils reporterJon Dufresne2018-12-161-2/+1
| |/ / | | | | | | | | | | | | The docutils reporter supports an exception as an argument. It is converted to a string internally.
| * | Avoid respecifying default encoding for .encode()/.decode() callsJon Dufresne2018-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, both .encode() and .decode() default the encoding to 'utf-8'. See the docs: https://docs.python.org/3/library/stdtypes.html#str.encode https://docs.python.org/3/library/stdtypes.html#bytes.decode Simplify and shorten the code by using the default instead of respecifying it.
| * | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-15/+14
| | |
| * | Move to py3 mode for mypy (and remove many "type: ignore" comments)Takeshi KOMIYA2018-12-151-2/+2
| | |
| * | Remove Python2 exception type in inheritance_diagram.pyJon Dufresne2018-12-091-2/+2
| | |
| * | Fix annotations for Directives (Replace N_co with nodes.Node)Takeshi KOMIYA2018-12-011-6/+8
| | |
| * | Fix annotations for extensionsTakeshi KOMIYA2018-12-011-9/+14
| | |
| * | Fix annotations for minor methods and functionsTakeshi KOMIYA2018-11-301-2/+2
| | |
| * | Fix annotaions for extensionsTakeshi KOMIYA2018-11-281-3/+6
| | |
| * | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| | |
* | | Replace __name__ with __qualname__; resolves #5538Brendt Wohlberg2018-11-141-1/+1
|/ /
* | Deprecate and drop internal use of force_decode()Jon Dufresne2018-11-131-6/+0
| | | | | | | | | | | | | | | | | | In the Python 3 only code base, this function is no longer necessary. The type of values is well understood and deliberate. Code should avoid arbitrary mixing of bytes & str. By removing force_decode() calls from docstring values, can deprecate the now unused 'encoding' arguments to various autodoc methods.
* | Fix mypy violationTakeshi KOMIYA2018-11-061-1/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-2/+2
|\ \ | |/
| * Fix mypy violationsTakeshi KOMIYA2018-10-161-2/+2
| |
* | Remove uses of six.moves that did not cause any type errorsJon Dufresne2018-09-231-1/+1
| | | | | | | | | | Removal of the remaining imports may require passing "--python-version 3.5" to the mypy command.