alan-turing-institute / AIrsenal

Machine learning Fantasy Premier League team
MIT License
288 stars 86 forks source link

Add type hints to function definitions #526

Open jack89roberts opened 1 year ago

jack89roberts commented 1 year ago

Move towards including typehints in AIrsenal function definitions, i.e. from this:

def foo(x, y, z):
   print(x, y, z)
   return z

to this:

def foo(x: int, y: float, z: str) -> str:
   print(x, y, z)
   return z
jack89roberts commented 1 year ago

See #445

rchan26 commented 1 year ago

Got a bit of free time this week to work partially on this - I'll do the fill_* scripts in airsenal/scripts/

rchan26 commented 1 year ago

Have also done make_* scripts in airsenal/scripts