MCPcopy Create free account
hub / github.com/bpython/bpython / _cmpl_sort

Function _cmpl_sort

bpython/autocomplete.py:746–754  ·  view source on GitHub ↗

Function used to sort the matches.

(x: str)

Source from the content-addressed store, hash-verified

744 """
745
746 def _cmpl_sort(x: str) -> tuple[bool, str]:
747 """
748 Function used to sort the matches.
749 """
750 # put parameters above everything in completion
751 return (
752 x[-1] != "=",
753 x,
754 )
755
756 for completer in completers:
757 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected