Files
bearhub/tests/__init__.py
2022-03-10 17:11:19 -03:00

11 lines
281 B
Python

class AnyInstance(object):
def __init__(self, instance_class: type):
self._class = instance_class
def __eq__(self, other):
return other is not None and isinstance(other, self._class)
def __repr__(self):
return f'<ANY_{self._class.__name__}>'