Skip to content

Commit 3430513

Browse files
authored
prevent returning None from __instancecheck__
1 parent c2e87a5 commit 3430513

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unification/variable.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class LVarType(ABCMeta):
1010
def __instancecheck__(self, o):
1111
with suppress(TypeError):
1212
return issubclass(type(o), (Var, LVarType)) or o in _glv
13+
return False
1314

1415

1516
class Var(metaclass=LVarType):

0 commit comments

Comments
 (0)