From bdc265057835b62ac5aa28d40a2136cdd69b05dc Mon Sep 17 00:00:00 2001 From: collerek Date: Fri, 27 Nov 2020 19:03:28 +0100 Subject: [PATCH] fix small code smells --- ormar/models/excludable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ormar/models/excludable.py b/ormar/models/excludable.py index 03020b4..11c57ab 100644 --- a/ormar/models/excludable.py +++ b/ormar/models/excludable.py @@ -31,7 +31,7 @@ class Excludable: to_exclude = Excludable.get_excluded(exclude=exclude, key=key) if isinstance(to_exclude, Set): return key in to_exclude - elif to_exclude is ...: + if to_exclude is ...: return True return False @@ -44,6 +44,6 @@ class Excludable: to_include = Excludable.get_included(include=include, key=key) if isinstance(to_include, Set): return key in to_include - elif to_include is ...: + if to_include is ...: return True return False