if k in message:
v = message[k]
for t in self._children[k]:
- match = False
- if isinstance(t, type):
- if isinstance(v, t):
- match = True
- else:
- if v == t:
- match = True
- if match:
+ if (v == t or (isinstance(t, type) and
+ (isinstance(v, t) or
+ (t == float and isinstance(v, int))))):
if self._children[k][t].check(client, message):
return True
return False
if k in message:
v = message[k]
for t in self._children[k]:
- match = False
- if isinstance(t, type):
- if isinstance(v, t):
- match = True
- else:
- if v == t:
- match = True
- if match:
+ if (v == t or (isinstance(t, type) and
+ (isinstance(v, t) or
+ (t == float and isinstance(v, int))))):
for c in self._children[k][t].get(message):
if c not in result:
result.append(c)