summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2021-07-04 04:08:42 (GMT)
committerGitHub <noreply@github.com>2021-07-04 04:08:42 (GMT)
commit9bf7c2d638a582af2444bc864feba13ab8957b68 (patch)
treea273f9feb6019ad8ce8675fe7142dd1e74d14538 /Lib/inspect.py
parent000b9e803a7ec067da0a43f9a3fec16f1078215a (diff)
downloadcpython-9bf7c2d638a582af2444bc864feba13ab8957b68.zip
cpython-9bf7c2d638a582af2444bc864feba13ab8957b68.tar.gz
cpython-9bf7c2d638a582af2444bc864feba13ab8957b68.tar.bz2
[3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010)
* [Enum] revert enum module to 3.9
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 9f8cc01..0273ffa 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -2561,6 +2561,9 @@ class _ParameterKind(enum.IntEnum):
KEYWORD_ONLY = 3
VAR_KEYWORD = 4
+ def __str__(self):
+ return self._name_
+
@property
def description(self):
return _PARAM_NAME_MAPPING[self]