Closed paul-tqh-nguyen closed 3 years ago
This PR is intended to address https://github.com/metagraph-dev/metagraph/issues/171.
This commit makes it so that abstract algorithms with any of the following signatures raise TypeError exceptions:
TypeError
def abst_algo(x: int) -> Concrete1:
def abst_algo(x: Concrete1) -> int:
def abst_algo(x: int) -> List[Concrete1]:
def abst_algo(x: List[Concrete1]) -> int:
This PR is intended to address https://github.com/metagraph-dev/metagraph/issues/171.
This commit makes it so that abstract algorithms with any of the following signatures raise
TypeError
exceptions:def abst_algo(x: int) -> Concrete1:
def abst_algo(x: Concrete1) -> int:
def abst_algo(x: int) -> List[Concrete1]:
def abst_algo(x: List[Concrete1]) -> int: