nose: type annotate with some resulting refactoring
nose: type annotate with some resulting refactoring

pytest-dev/pytest,Akasurde/pytest,nicoddemus/pytest,RonnyPfannschmidt/pytest,nicoddemus/pytest,markshao/pytest