Skip to content

Commit a60ae15

Browse files
committed
Fix type annotation
1 parent 809003c commit a60ae15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/autocomplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class AutocompleteModes(Enum):
6363
FUZZY = "fuzzy"
6464

6565
@classmethod
66-
def from_string(cls, value: str) -> Optional[Any]:
66+
def from_string(cls, value: str) -> Optional["AutocompleteModes"]:
6767
if value.upper() in cls.__members__:
6868
return cls.__members__[value.upper()]
6969
return None

0 commit comments

Comments
 (0)