From 02784bb068fa2db4bd9afbc9618de01dcc417eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oleg=20H=C3=B6fling?= Date: Fri, 21 Feb 2020 14:30:15 +0100 Subject: [PATCH] inspect._ParameterKind subclasses from enum.IntEnum (#3750) Closes #3467. --- stdlib/3/inspect.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/3/inspect.pyi b/stdlib/3/inspect.pyi index 7c5fa00da..7ea6b9998 100644 --- a/stdlib/3/inspect.pyi +++ b/stdlib/3/inspect.pyi @@ -1,4 +1,5 @@ import sys +import enum from typing import (AbstractSet, Any, Callable, Dict, Generator, List, Mapping, NamedTuple, Optional, Sequence, Tuple, Type, Union, ) @@ -124,7 +125,7 @@ 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(enum.IntEnum): if sys.version_info >= (3, 8): description: str