Skip to content

Commit 0d17a52

Browse files
committed
Flake8 cleanup.
It appears that the latest version of flake8 caught a couple more things.
1 parent fa5aa4a commit 0d17a52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mkdocs/config/config_options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ def run_validation(self, value):
487487
if len(value) == 0:
488488
return
489489

490-
config_types = {type(l) for l in value}
491-
if config_types.issubset({str, dict, str}):
490+
config_types = {type(item) for item in value}
491+
if config_types.issubset({str, dict}):
492492
return value
493493

494494
raise ValidationError("Invalid pages config. {} {}".format(

mkdocs/plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _register_event(self, event_name, method):
6868
def __setitem__(self, key, value, **kwargs):
6969
if not isinstance(value, BasePlugin):
7070
raise TypeError(
71-
'{0}.{1} only accepts values which are instances of {3}.{4} '
71+
'{0}.{1} only accepts values which are instances of {2}.{3} '
7272
'sublcasses'.format(self.__module__, self.__name__,
7373
BasePlugin.__module__, BasePlugin.__name__))
7474
super().__setitem__(key, value, **kwargs)

0 commit comments

Comments
 (0)