We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 620da4b commit 918bafdCopy full SHA for 918bafd
bpython/repl.py
@@ -1101,7 +1101,7 @@ def token_is_type(token):
1101
def token_is_any_of(token_types):
1102
"""Return a callable object that returns whether a token is any of the
1103
given types `token_types`."""
1104
- is_token_types = map(token_is, token_types)
+ is_token_types = tuple(map(token_is, token_types))
1105
1106
def token_is_any_of(token):
1107
return any(check(token) for check in is_token_types)
0 commit comments