mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[debian] initial Debian package management support
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
|
||||
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__}>'
|
||||
|
||||
Reference in New Issue
Block a user