in darabonba/utils/stream.py [0:0]
def __instancecheck__(self, instance): if hasattr(instance, 'read') and hasattr(instance, '__iter__'): return True