Browse Source

[FIX] use is None instead of ==

pull/1/head
Tony-HYX 2 years ago
parent
commit
0cacd99bd4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      abl/reasoning/kb.py

+ 1
- 1
abl/reasoning/kb.py View File

@@ -110,7 +110,7 @@ class KBBase(ABC):
bool
The result of the check.
"""
if logic_result == None:
if logic_result is None:
return False

if isinstance(logic_result, (int, float)) and isinstance(y, (int, float)):


Loading…
Cancel
Save