Skip to content

Commit 92a1fd3

Browse files
committed
Relax requirements
A sequence is enough.
1 parent 53f7d12 commit 92a1fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

curtsies/events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import itertools
44
import sys
55
from enum import Enum, auto
6-
from typing import Dict, Optional, List, Union
6+
from typing import Optional, List, Sequence, Union
77

88
from .termhelpers import Termmode
99
from .curtsieskeys import CURTSIES_NAMES as special_curtsies_names
@@ -163,7 +163,7 @@ def decodable(seq: bytes, encoding: str) -> bool:
163163

164164

165165
def get_key(
166-
bytes_: List[bytes],
166+
bytes_: Sequence[bytes],
167167
encoding: str,
168168
keynames: Keynames = Keynames.CURTSIES,
169169
full: bool = False,

0 commit comments

Comments
 (0)