MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_rcparam_stubs

Function test_rcparam_stubs

lib/matplotlib/tests/test_typing.py:101–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100
101def test_rcparam_stubs():
102 runtime_rc_keys = {
103 name for name in plt.rcParamsDefault.keys()
104 if not name.startswith('_')
105 }
106
107 assert {*typing.get_args(RcKeyType)} == runtime_rc_keys
108
109 runtime_rc_group_keys = set()
110 for name in runtime_rc_keys:
111 groups = name.split('.')
112 for i in range(1, len(groups)):
113 runtime_rc_group_keys.add('.'.join(groups[:i]))
114
115 assert {*typing.get_args(RcGroupKeyType)} == runtime_rc_group_keys

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…