rainbowadn/rainbowadn/data/collection/collection_interface/collectioninterface.py
2022-05-08 21:56:17 +03:00

19 lines
447 B
Python

from typing import Generic, TypeVar
from rainbowadn.hashing.nullability.nullablereference import NullableReference
__all__ = ('CollectionInterface',)
CollectionType = TypeVar('CollectionType')
class CollectionInterface(
Generic[CollectionType]
):
def __init__(
self,
reference: NullableReference[CollectionType]
):
assert isinstance(reference, NullableReference)
self.reference = reference