Fix SIM118 (use `key in dict not key in dict.keys()`)

This commit is contained in:
Adam Turner
2023-08-13 23:06:27 +01:00
parent 9bcf1d8bb3
commit 3600862477
2 changed files with 1 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ def test_theme_api(app, status, warning):
# options API
options = theme.get_options({'nonexisting': 'foo'})
assert 'nonexisting' not in options.keys()
assert 'nonexisting' not in options
options = theme.get_options(cfg.html_theme_options)
assert options['testopt'] == 'foo'