summaryrefslogtreecommitdiff
path: root/sphinx/util/inspect.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch '3.x'Takeshi KOMIYA2020-11-091-10/+11
|\ \ \ | |/ /
| * | Fix #8219: autodoc: Parameters for generic base class are not shownTakeshi KOMIYA2020-11-091-0/+3
| | |
| * | Merge branch '3.x' into 8105_incorrect_class_constructorTakeshi KOMIYA2020-11-081-8/+0
| |\ \
| | * | Drop Python 3.4 compatibility codeFrançois Freitag2020-11-071-8/+0
| | |/ | | | | | | | | | Python 3.4 support was dropped in Sphinx 2.0.
| * | Fix #8105: autodoc: the signature of decorated class is incorrectTakeshi KOMIYA2020-11-051-2/+8
| |/ | | | | | | | | | | | | | | | | In #7651, autodoc stops to undecorate the functions on getting the signature from the callables. But some kinds of decorators conceals the correct signature because they pass through their arguments via `(*args, **kwargs)`. This restarts to undecorate the functions again as before #7651.
* | Remove additional mentions of Python 3.5François Freitag2020-11-071-1/+1
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-10-241-12/+13
|\ \ | |/
| * Fix #8255: py domain: number in defarg is changed to decimalTakeshi KOMIYA2020-10-051-12/+13
| | | | | | | | | | | | | | | | Number literals in default argument value is converted to decimal form unexpectedly by AST module. This fixes the signature parsing code to recosntruct it correctly. Note: This is only available in Python 3.8+.
* | Merge branch '3.x' into masterTakeshi KOMIYA2020-10-041-3/+3
|\ \ | |/
| * Close #6518: autodoc: Add autodoc_type_aliasesTakeshi KOMIYA2020-10-031-3/+3
| | | | | | | | | | autodoc_type_aliases allows to keep user defined type alises not evaluated in the generated document.
* | Merge branch '3.x' into masterTakeshi KOMIYA2020-10-031-0/+5
|\ \ | |/
| * Fix #8103: autodoc: cached_property is not considered as a propertyTakeshi KOMIYA2020-08-131-0/+5
| | | | | | | | | | | | sphinx.util.inspect:isproperty() does not considers that cached_property decorator that has been added since Python 3.8 is a kind of properties. This fixes it.
* | Merge branch '3.x'Takeshi KOMIYA2020-08-011-1/+1
|\ \ | |/
| * Fix #8023: evaluate_signature() does not work properly in python3.9Takeshi KOMIYA2020-08-011-1/+1
| | | | | | | | | | | | | | Since 3.9b5, ForwardRef._evalute() also takes an additional argument `recursive_guard`. As a result, sphinx.util.inspect:evaluate_signature() does not work properly. This adds a simple wrapper evalute_forwardref() to allow evaluating ForwardRefs in py3.9.
* | Merge branch '3.x'Takeshi KOMIYA2020-08-011-3/+10
|\ \ | |/
| * Fix #8023: evaluate_signature() does not work properly in python3.10Takeshi KOMIYA2020-08-011-3/+10
| | | | | | | | | | | | | | Since 3.10, ForwardRef._evalute() takes an additional argument `recursive_guard`. As a result, sphinx.util.inspect:evaluate_signature() does not work properly. This adds a simple wrapper evalute_forwardref() to allow evaluating ForwardRefs in py3.10.
* | Merge branch '3.x'Takeshi KOMIYA2020-07-241-2/+49
|\ \ | |/
| * Merge branch '3.x' into 7901_resolve_types_for_overloaded_funcsTakeshi KOMIYA2020-07-121-1/+7
| |\
| | * Fix #7935: autodoc: A default value inspect._empty conseals signaturesTakeshi KOMIYA2020-07-121-1/+7
| | | | | | | | | | | | | | | | | | A function signature is not shown when the function has a parameter having ``inspect._empty`` as its default value because Signature class validates function signatures on instantiation.
| * | Fix #7901: autodoc: annotations for overloaded functions are not resolvedTakeshi KOMIYA2020-07-111-1/+42
| |/ | | | | | | | | | | 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-07-051-4/+4
|\ \ | |/
| * Merge pull request #7832 from cool-RR/2020-06-11-raise-fromTakeshi KOMIYA2020-06-291-4/+4
| |\ | | | | | | Fix exception causes all over the codebase
| | * Fix exception causes all over the codebaseRam Rachum2020-06-141-4/+4
| | |
* | | Merge tag 'v3.1.1'Takeshi KOMIYA2020-07-051-2/+17
|\ \ \ | |/ /
| * | Fix #7807: autodoc: wrong signature is shown for the function using ↵Takeshi KOMIYA2020-06-141-1/+16
| | | | | | | | | | | | contextmanager
| * | Fix #7812: autosummary: generates broken stub filesTakeshi KOMIYA2020-06-111-1/+1
| |/
* | Merge tag 'v3.1.0'Takeshi KOMIYA2020-07-051-4/+8
|\ \ | |/
| * Add sphinx.util.inspect:signature_from_ast()Takeshi KOMIYA2020-05-311-4/+8
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-06-041-6/+34
|\ \ | |/
| * Merge pull request #7757 from tk0miya/7756_posonlyargsTakeshi KOMIYA2020-05-311-5/+20
| |\ | | | | | | Fix #7756: py domain: The default value for posonlyarg is not shown
| | * Fix #7756: py domain: The default value for posonlyarg is not shownTakeshi KOMIYA2020-05-311-5/+20
| | |
| * | Add sphinx.util.inspect:isgenericalias()Takeshi KOMIYA2020-05-301-0/+13
| |/
| * BUG: Fix check for methEric Larson2020-05-281-1/+1
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-05-171-12/+24
|\ \ | |/
| * Fix #7650: autodoc: undecorated signature is shown for decorated functionsTakeshi KOMIYA2020-05-111-2/+9
| |
| * Merge pull request #7624 from tk0miya/refactor_autodoc2Takeshi KOMIYA2020-05-091-6/+0
| |\ | | | | | | refactor: autodoc: class processors on autofunction is no longer needed
| | * refactor: autodoc: class processors on autofunction is no longer neededTakeshi KOMIYA2020-05-071-6/+0
| | |
| * | Do not crash if `is_builtin_class_method` is passed a non-typeEric Wieser2020-05-081-4/+15
| |/
* | Merge branch '3.x'Takeshi KOMIYA2020-05-041-1/+1
|\ \ | |/
| * Add stacklevel parameter to warnings.warn() callTakeshi KOMIYA2020-05-031-3/+3
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-05-021-3/+6
|\ \ | |/
| * Fix #7559: autodoc: misdetects a sync function is asyncTakeshi KOMIYA2020-05-011-3/+6
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-04-301-1/+12
|\ \ | |/
| * Fix #6588: autodoc: Decorated inherited method has no documentationTakeshi KOMIYA2020-04-281-1/+12
| |
* | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-291-167/+2
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-04-271-2/+2
|\ \ | |/
| * Merge pull request #7509 from tk0miya/refactor_Optional_typehintsTakeshi KOMIYA2020-04-201-2/+2
| |\ | | | | | | refactor: Add Optional to type annotations
| | * refactor: Add Optional to type annotationsTakeshi KOMIYA2020-04-191-2/+2
| | |
* | | Merge branch '3.x'Takeshi KOMIYA2020-04-191-1/+1
|\ \ \ | |/ /
| * | Fix #7510: py domain: keyword-only arguments are wrongly renderedTakeshi KOMIYA2020-04-191-1/+1
| |/