MCPcopy Create free account
hub / github.com/bpython/bpython / setup_config

Function setup_config

bpython/test/test_brackets_completion.py:11–17  ·  view source on GitHub ↗
(conf)

Source from the content-addressed store, hash-verified

9
10
11def setup_config(conf):
12 config_struct = config.Config(TEST_CONFIG)
13 for key, value in conf.items():
14 if not hasattr(config_struct, key):
15 raise ValueError(f"{key!r} is not a valid config attribute")
16 setattr(config_struct, key, value)
17 return config_struct
18
19
20def create_repl(brackets_enabled=False, **kwargs):

Callers 1

create_replFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected