MCPcopy Index your code
hub / github.com/bpython/bpython / from_string

Method from_string

bpython/autocomplete.py:65–68  ·  view source on GitHub ↗
(cls, value: str)

Source from the content-addressed store, hash-verified

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 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected