fix small code smells

This commit is contained in:
collerek
2020-11-27 19:03:28 +01:00
parent 7b97510f88
commit bdc2650578

View File

@ -31,7 +31,7 @@ class Excludable:
to_exclude = Excludable.get_excluded(exclude=exclude, key=key) to_exclude = Excludable.get_excluded(exclude=exclude, key=key)
if isinstance(to_exclude, Set): if isinstance(to_exclude, Set):
return key in to_exclude return key in to_exclude
elif to_exclude is ...: if to_exclude is ...:
return True return True
return False return False
@ -44,6 +44,6 @@ class Excludable:
to_include = Excludable.get_included(include=include, key=key) to_include = Excludable.get_included(include=include, key=key)
if isinstance(to_include, Set): if isinstance(to_include, Set):
return key in to_include return key in to_include
elif to_include is ...: if to_include is ...:
return True return True
return False return False