rstudio / vetiver-python

Version, share, deploy, and monitor models.
https://rstudio.github.io/vetiver-python/stable/
MIT License
60 stars 17 forks source link

[FIX] None type handling for `python_version` in metadata #149

Closed isabelizimm closed 1 year ago

isabelizimm commented 1 year ago

closes #148

This bug occurs when the python_version metadata field is None (since None cannot be coerced into a tuple). This also adds tests around if no Python version is supplied at pin_read, no Python version is populated. The idea is that we do not overwrite/populate Python versions of models being read from pins.