Fix typing in hparams methods (#9116)
Fix typing in hparams methods (#9116)


Co-authored-by: pre-commit-ci[bot] <3ea08453efb076ca910552532a53973a6527df40@users.noreply.github.com>
williamFalcon/pytorch-lightning,williamFalcon/pytorch-lightning