style: pre-commit fixes

This commit is contained in:
pre-commit-ci[bot] 2024-03-27 06:21:36 +00:00
parent 1e6bea27f7
commit bf6077affc

View File

@ -40,6 +40,6 @@ TEST_CASES = {
def test_docstring(test_case):
assert dir(m) # Only direct use of m, to stop tooling from removing the import.
# On some platforms the stl_binders module name prevails for KeysView, ValuesView, ItemsView.
docstring = eval(test_case).replace(".stl_binders.", ".cases_for_stubgen.") # noqa: PGH001
docstring = eval(test_case).replace(".stl_binders.", ".cases_for_stubgen.")
expected = TEST_CASES[test_case]
assert docstring == expected