Avoid getattr when dispatching pytest_runtest_* hooks
Avoid getattr when dispatching pytest_runtest_* hooks

Using getattr doesn't work with typing, and also breaks grep. It took me
a while to find where these hooks are called.

pytest-dev/pytest,markshao/pytest,RonnyPfannschmidt/pytest,alfredodeza/pytest,nicoddemus/pytest,nicoddemus/pytest,Akasurde/pytest,The-Compiler/pytest,The-Compiler/pytest