summaryrefslogtreecommitdiff
path: root/sphinx/util/inspect.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Merge branch '1.8'Takeshi KOMIYA2018-09-161-1/+1
| |\ \ | | |/
| | * Fix typoTakeshi KOMIYA2018-09-141-1/+1
| | |
* | | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-2/+2
|/ / | | | | | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* | Ensure frozenset object descriptions are reproducibleChris Lamb2018-09-051-0/+9
|/ | | | | | | | | | | | | | | | | | | | | | | | | | Whilst working on the Reproducible Builds effort [0], we noticed that sphinx could generate output that is not reproducible. In particular, the rendering of `frozenset` objects in default arguments and elsewhere is currently non-determinstic. For example: frozenset(['a', 'b', 'c']) Might be rendered as any of: frozenset({'a', 'b', 'c'}) frozenset({'a', 'c', 'b'}) frozenset({'b', 'a', 'c'}) frozenset({'b', 'c', 'a'}) frozenset({'c', 'a', 'b'}) frozenset({'c', 'b', 'a'}) Patch attached that sorts the contents of frozensets whilst rendering. This is parallel to the `dict` and `set` type logic [0] https://reproducible-builds.org/
* autodoc: Fix typing.get_type_hints() raises AttributeError for partial objectsTakeshi KOMIYA2018-08-251-2/+7
|
* Merge branch '1.7' into 1.8Takeshi KOMIYA2018-08-251-1/+3
|\
| * Fix #5322: autodoc: ``Any`` typehint causes formatting errorTakeshi KOMIYA2018-08-221-1/+3
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-08-191-4/+39
|\ \ | |/
| * Fix #5211: autodoc: No docs generated for functools.partial functionsTakeshi KOMIYA2018-08-171-4/+39
| |
* | Fix #5306: autodoc: emit a warning for invalid typehintsTakeshi KOMIYA2018-08-171-1/+5
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-08-171-45/+58
|\ \ | |/
| * Fix #5291: autodoc crashed by ForwardRef typesTakeshi KOMIYA2018-08-151-0/+4
| |
| * Fix mypy annotationsTakeshi KOMIYA2018-08-151-3/+3
| |
| * refactor: format_annotation()Takeshi KOMIYA2018-08-151-23/+10
| |
| * Fix autodoc: Optional types are wrongly renderedTakeshi KOMIYA2018-08-151-32/+49
| |
| * handle NoneType as NoneTerence D. Honles2018-08-101-0/+6
| |
| * change format_args to prefer annotations from typing.get_type_hintsTerence Honles2018-08-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | The current code looks for the pattern:: class Node: def parent(self) -> 'Node': pass This change allows more complex forward references:: class Node: def children(self) -> Set['Node']: pass
* | Merge branch '1.7'Takeshi KOMIYA2018-07-171-0/+7
|\ \ | |/
| * Merge pull request #5167 from mitya57/long-tuplesTakeshi KOMIYA2018-07-161-0/+7
| |\ | | | | | | Fix formatting type annotations for tuples with more than two arguments
| | * inspect: Handle Tuple type as a special caseDmitry Shachnev2018-07-131-0/+7
| | |
| * | Fix #5143: autodoc: crashed on inspecting dict like objectTakeshi KOMIYA2018-07-151-1/+1
| |/
* | Merge pull request #5170 from tk0miya/5143_autodoc_crashed_on_inspectingTakeshi KOMIYA2018-07-151-1/+1
|\ \ | | | | | | Fix #5143: autodoc: crashed on inspecting dict like object
| * | Fix #5143: autodoc: crashed on inspecting dict like objectTakeshi KOMIYA2018-07-151-1/+1
| |/
* | Merge branch '1.7'Takeshi KOMIYA2018-06-161-2/+2
|\ \ | |/
| * Fix #5032: autodoc loses the first staticmethod parameter for old styled classesTakeshi KOMIYA2018-06-131-2/+2
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-05-191-3/+7
|\ \ | |/
| * Fix #4969: autodoc: constructor method should not have return annotationTakeshi KOMIYA2018-05-191-3/+7
| |
* | Merge pull request #4834 from ↵Takeshi KOMIYA2018-04-141-1/+12
|\ \ | | | | | | | | | | | | lamby/895553-sphinx-please-make-the-set-object-description-reproducible Ensure set object descriptions are reproducible.
| * | Ensure the set object description is reproducible.Chris Lamb2018-04-141-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whilst working on the Reproducible Builds effort [0], we noticed that sphinx could generate output that is not reproducible. In particular, the rendering of `set` objects in default arguments and elsewhere is currently non-determinstic. For example: class A_Class(object): a_set = {'a', 'b', 'c'} Might be rendered as any of: {'a', 'b', 'c'} {'a', 'c', 'b'} {'b', 'a', 'c'} {'b', 'c', 'a'} {'c', 'a', 'b'} {'c', 'b', 'a'} Patch attached that sorts the contents of sets whilst rendering. This is parallel to the `dict` key sorting. This was originally filed in Debian as #895553 [1]. [0] https://reproducible-builds.org/ [1] https://bugs.debian.org/895553 Signed-off-by: Chris Lamb <lamby@debian.org>
| * | Call object_description recursively for dict keys and values.Chris Lamb2018-04-141-1/+3
| | |
* | | Merge branch '1.7'Takeshi KOMIYA2018-04-141-1/+4
|\ \ \ | |/ / |/| / | |/
| * Fix #4543: testcase for partialmethod is failed with py3.6.5Takeshi KOMIYA2018-04-081-1/+4
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
|\ \ | |/
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge branch '1.7'Takeshi KOMIYA2018-03-031-3/+3
|\ \ | |/
| * Fix mypy violationsTakeshi KOMIYA2018-03-031-3/+3
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-3/+4
|\ \ | |/
| * Merge pull request #4616 from tk0miya/use_typing.TYPE_CHECKINGTakeshi KOMIYA2018-02-171-2/+2
| |\ | | | | | | Use typing.type checking
| | * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
| | |
| * | Fix #4260: autodoc: keyword only argument separator is not disappearedTakeshi KOMIYA2018-02-131-1/+2
| |/
| * Fix #4539: autodoc emits warnings for partialmethodsTakeshi KOMIYA2018-02-041-3/+14
| |
* | Update type annotationsTakeshi KOMIYA2018-02-041-0/+3
| |
* | Fix #4539: autodoc emits warnings for partialmethodsTakeshi KOMIYA2018-02-031-3/+14
|/
* Merge branch '1.7-release' into use_flake8-import-orderTakeshi KOMIYA2018-01-281-0/+49
|\
| * Fix #4490: autodoc: type annotation is broken with python 3.7.0a4+Takeshi KOMIYA2018-01-271-0/+49
| |
* | Use flake8-import-orderTakeshi KOMIYA2018-01-281-1/+1
|/
* Fix Signature does not work correctly with py37a4+Takeshi KOMIYA2018-01-251-3/+6
|
* Fix #4415: autodoc classifies inherited staticmethods as regular methodsTakeshi KOMIYA2018-01-201-0/+20
|
* Fix #4415: autodoc classifies inherited classmethods as regular methodsTakeshi KOMIYA2018-01-201-0/+14
|
* Fix #3570: autodoc: Do not display typing. module for type hintsTakeshi KOMIYA2018-01-131-3/+11
|