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

Function test_make_keyword_only

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

Source from the content-addressed store, hash-verified

146
147
148def test_make_keyword_only() -> None:
149 @_api.make_keyword_only("3.0", "arg")
150 def func(pre: Any, arg: Any, post: Any = None) -> None:
151 pass
152
153 func(1, arg=2) # Check that no warning is emitted.
154
155 with pytest.warns(mpl.MatplotlibDeprecationWarning):
156 func(1, 2)
157 with pytest.warns(mpl.MatplotlibDeprecationWarning):
158 func(1, 2, 3)
159
160
161def test_deprecation_alternative() -> None:

Callers

nothing calls this directly

Calls 1

funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…