Disallow untyped calls and incomplete defs

This commit is contained in:
2021-01-20 10:48:03 -06:00
parent 7555f561f8
commit 947189f25f
6 changed files with 47 additions and 30 deletions

View File

@@ -5,6 +5,7 @@
import gzip
import json
from abc import ABC, abstractmethod
from typing import Any
import numpy as np
@@ -20,7 +21,7 @@ class Instance(ABC):
"""
@abstractmethod
def to_model(self):
def to_model(self) -> Any:
"""
Returns a concrete Pyomo model corresponding to this instance.
"""