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

Method _handle_conflict_error

Lib/argparse.py:1717–1724  ·  view source on GitHub ↗
(self, action, conflicting_actions)

Source from the content-addressed store, hash-verified

1715 conflict_handler(action, confl_optionals)
1716
1717 def _handle_conflict_error(self, action, conflicting_actions):
1718 message = ngettext('conflicting option string: %s',
1719 'conflicting option strings: %s',
1720 len(conflicting_actions))
1721 conflict_string = ', '.join([option_string
1722 for option_string, action
1723 in conflicting_actions])
1724 raise ArgumentError(action, message % conflict_string)
1725
1726 def _handle_conflict_resolve(self, action, conflicting_actions):
1727

Callers

nothing calls this directly

Calls 4

ngettextFunction · 0.90
lenFunction · 0.85
ArgumentErrorClass · 0.70
joinMethod · 0.45

Tested by

no test coverage detected