summaryrefslogtreecommitdiff
path: root/tests/typing_test_data.py
Commit message (Collapse)AuthorAgeFilesLines
* Resolve lint errors from Ruff 0.0.254Adam Turner2023-03-051-1/+1
|
* Fix various Ruff errorsAdam Turner2023-01-311-1/+1
|
* remove blanket 'noqas'Daniel Eades2022-12-161-1/+1
|
* Drop Python 3.7Adam Turner2022-09-271-0/+16
|
* refactor: Fix flake8 violations under tests/ directoryTakeshi KOMIYA2020-11-151-1/+1
|
* Sort imports with isortFrançois Freitag2020-11-111-1/+1
| | | | | | | | | | | | 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.
* Fix #7935: autodoc: A default value inspect._empty conseals signaturesTakeshi KOMIYA2020-07-121-0/+4
| | | | | | 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.
* Make sphinx.util.typing.stringify render optional unions betterJohn R. Lenton2020-05-111-0/+4
| | | | | | | | | Without this change, stringify(Optional[Union[int, str]]) returns 'Union[int, str, None]' rather than the expected 'Optional[...]'. This change fixes that. fixes: #7654
* Fix autodoc: missing type annotation for variadic and keyword parameters ↵Takeshi KOMIYA2019-07-131-0/+5
| | | | (refs: #6574)
* Fix #6347: autodoc: crashes with a plain Tuple on Python 3.6 and 3.5Takeshi KOMIYA2019-05-291-1/+5
|
* Merge branch '1.8'Takeshi KOMIYA2018-11-011-2/+7
|\
| * Fix #5480: autodoc: unable to find type hints for unresolvable Forward ↵Takeshi KOMIYA2018-10-151-0/+4
| | | | | | | | references
* | test: Merge py3/test_util_inspect_py3.py to test_util_inspect.pyTakeshi KOMIYA2018-09-221-0/+7
|/
* Fix #5322: autodoc: ``Any`` typehint causes formatting errorTakeshi KOMIYA2018-08-221-1/+5
|
* Fix #5291: autodoc crashed by ForwardRef typesTakeshi KOMIYA2018-08-151-0/+3
|
* Fix autodoc: Optional types are wrongly renderedTakeshi KOMIYA2018-08-151-1/+5
|
* handle NoneType as NoneTerence D. Honles2018-08-101-0/+5
|
* Add a failing test for formatting Tuple[int, str, int]Dmitry Shachnev2018-07-131-0/+4
|
* Fix flake8 violationsTakeshi KOMIYA2018-02-191-2/+1
|
* Fix annotations formatting for plain typing.CallableAlex Grönholm2016-11-021-2/+7
| | | | The typing.Callable class may be used without generic arguments, in which case it is equivalent to collections.abc.Callable.
* refs #2432 update for latest mastershimizukawa2016-10-191-1/+1
|
* Merge pull request #2432 from agronholm/kwonlyargsTakayuki SHIMIZUKAWA2016-10-191-3/+7
|\ | | | | #2432 Fix unwanted * between varargs and keyword only args
| * Fix unwanted * between varargs and keyword only argsAlex Grönholm2016-04-091-3/+7
| | | | | | | | The * parameter must only be present when a holder for positional variable arguments is not present.
* | ext.autodoc: fix formatting instance annotationsJoost van Zwieten2016-08-071-0/+8
|/ | | | | | | Currently `format_annotation` fails on instances, because instances don't have `__module__` and `__qualname__` attributes. Defer building the `qualified_name` of an annotation until we have established that the annotation is a type.
* Closes #1968: Show extended type hints for function annotations that use ↵Andrey Vlasovskikh2015-07-311-0/+48
'typing' module