Commit abc497f
Handle collections.abc.Callable as well as typing.Callable (#289)
* Handle collections.abc.Callable as well as typing.Callable
typing.Callable is deprecated in favor of collections.abc.Callable
since Python 3.9:
https://docs.python.org/3/library/typing.html?highlight=typing%20callable#typing.Callable
* Add tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix tests in py38 and py37
* Fix lints
* Suppress mypy lints
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent e8cdce1 commit abc497f
File tree
2 files changed
+29
-1
lines changed- src/sphinx_autodoc_typehints
- tests
2 files changed
+29
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
114 | 131 | | |
115 | 132 | | |
116 | 133 | | |
| |||
128 | 145 | | |
129 | 146 | | |
130 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
131 | 155 | | |
132 | 156 | | |
133 | 157 | | |
| |||
224 | 248 | | |
225 | 249 | | |
226 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
227 | 255 | | |
228 | 256 | | |
229 | 257 | | |
| |||
0 commit comments