We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a8107 commit 24304feCopy full SHA for 24304fe
logwrap/repr_utils.pyx
@@ -191,6 +191,9 @@ cdef class PrettyFormat:
191
sig = inspect.signature(src)
192
if sig.return_annotation is inspect.Parameter.empty:
193
annotation = ""
194
+ elif sig.return_annotation is type(None): # noqa: E721
195
+ # Python 3.10 special case
196
+ annotation = " -> None"
197
else:
198
annotation = f" -> {getattr(sig.return_annotation, '__name__', sig.return_annotation)!s}"
199
0 commit comments