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

Function test_delete_parameter

lib/matplotlib/tests/test_api.py:126–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124
125
126def test_delete_parameter() -> None:
127 @_api.delete_parameter("3.0", "foo")
128 def func1(foo: Any = None) -> None:
129 pass
130
131 @_api.delete_parameter("3.0", "foo")
132 def func2(**kwargs: Any) -> None:
133 pass
134
135 for func in [func1, func2]: # type: ignore[list-item]
136 func() # No warning.
137 with pytest.warns(mpl.MatplotlibDeprecationWarning):
138 func(foo="bar")
139
140 def pyplot_wrapper(foo: Any = _api.deprecation._deprecated_parameter) -> None:
141 func1(foo)
142
143 pyplot_wrapper() # No warning.
144 with pytest.warns(mpl.MatplotlibDeprecationWarning):
145 func(foo="bar")
146
147
148def test_make_keyword_only() -> None:

Callers

nothing calls this directly

Calls 2

pyplot_wrapperFunction · 0.85
funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…