Skip to content

Instantly share code, notes, and snippets.

@rajarshi
Created January 5, 2021 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajarshi/0479aa9ed9a6d9a236c6e9ff40f8c9e0 to your computer and use it in GitHub Desktop.
Save rajarshi/0479aa9ed9a6d9a236c6e9ff40f8c9e0 to your computer and use it in GitHub Desktop.
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