Open
Description
Hello,
I'm wondering the following regarding Enum.__signature__
:
- Why return a
str
(better suited for__text_signature__
isn't it?) - When there are members, why choose
'(*values)'
over the more accurate (I think)'(value)'
?
Lines 1148 to 1150 in f218549
If acted upon, I think it would be better to replace current signatures with Signature
types. For example for enums with members:
__signature__ = Signature([Parameter("value", Parameter.POSITIONAL_OR_KEYWORD)])
All the best!