MCPcopy Index your code
hub / github.com/RustPython/RustPython / _ParameterKind

Class _ParameterKind

Lib/inspect.py:2624–2639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2622
2623
2624class _ParameterKind(enum.IntEnum):
2625 POSITIONAL_ONLY = 'positional-only'
2626 POSITIONAL_OR_KEYWORD = 'positional or keyword'
2627 VAR_POSITIONAL = 'variadic positional'
2628 KEYWORD_ONLY = 'keyword-only'
2629 VAR_KEYWORD = 'variadic keyword'
2630
2631 def __new__(cls, description):
2632 value = len(cls.__members__)
2633 member = int.__new__(cls, value)
2634 member._value_ = value
2635 member.description = description
2636 return member
2637
2638 def __str__(self):
2639 return self.name
2640
2641_POSITIONAL_ONLY = _ParameterKind.POSITIONAL_ONLY
2642_POSITIONAL_OR_KEYWORD = _ParameterKind.POSITIONAL_OR_KEYWORD

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected