I raised this issue and the maintainer directed me to here, I am looking for more insight to see if this is actually a bug or missing feature. The maintainer says it's not able to guess what type it should be, I think yes if it's guessing from class level.
But I think it's possible to get the type from instance level.