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

Class AutocompleteModes

bpython/autocomplete.py:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57# Autocomplete modes
58class AutocompleteModes(Enum):
59 NONE = "none"
60 SIMPLE = "simple"
61 SUBSTRING = "substring"
62 FUZZY = "fuzzy"
63
64 @classmethod
65 def from_string(cls, value: str) -> Optional["AutocompleteModes"]:
66 if value.upper() in cls.__members__:
67 return cls.__members__[value.upper()]
68 return None
69
70
71MAGIC_METHODS = tuple(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected