inspect: update _ParameterKind for py38 (#3587)

This commit is contained in:
hauntsaninja
2020-01-07 23:19:04 -08:00
committed by Jelle Zijlstra
parent da9b7dd7c8
commit 0505c100e1

View File

@@ -124,7 +124,9 @@ class Signature:
def from_callable(cls, obj: Callable[..., Any], *, follow_wrapped: bool = ...) -> Signature: ...
# The name is the same as the enum's name in CPython
class _ParameterKind: ...
class _ParameterKind:
if sys.version_info >= (3, 8):
description: str
class Parameter:
def __init__(self,