Skip to content

Commit b3b74b8

Browse files
committed
eval wants a dict, so make sure that the Interpreter has a dict
1 parent 7d3f3d9 commit b3b74b8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bpython/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ def main_curses(
19401940
args: List[str],
19411941
config: Config,
19421942
interactive: bool = True,
1943-
locals_: Optional[MutableMapping[str, str]] = None,
1943+
locals_: Optional[Dict[str, Any]] = None,
19441944
banner: Optional[str] = None,
19451945
) -> Tuple[Tuple[Any, ...], str]:
19461946
"""main function for the curses convenience wrapper

bpython/repl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
Optional,
4949
Type,
5050
Union,
51-
MutableMapping,
5251
Callable,
5352
Dict,
5453
TYPE_CHECKING,
@@ -109,7 +108,7 @@ class Interpreter(code.InteractiveInterpreter):
109108

110109
def __init__(
111110
self,
112-
locals: Optional[MutableMapping[str, Any]] = None,
111+
locals: Optional[Dict[str, Any]] = None,
113112
) -> None:
114113
"""Constructor.
115114

0 commit comments

Comments
 (0)