Created
January 5, 2021 13:26
-
-
Save rajarshi/0479aa9ed9a6d9a236c6e9ff40f8c9e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import List, Union | |
class Unit: | |
def __init__(self): | |
pass | |
class Result: | |
def __init__(self, value: float, unit: Unit): | |
self._value = value | |
self._unit = unit | |
Smiles = str | |
def predict_activity(smi: Smiles, values: List[Result] = None) -> List[float]: | |
return "hello" | |
if __name__ == '__main__': | |
predict_activity(123.34, None) | |
predict_activity("CCCC", [1, 2, 3]) | |
predict_activity("CCCC", [Result(12.0, Unit())]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment