mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
11 lines
281 B
Python
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__}>'
|