MCPcopy Index your code
hub / github.com/python/cpython / _ParameterKind

Class _ParameterKind

Lib/inspect.py:2630–2645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…