It seems that function and class decorators implement the wrong type hint and therefore make the decorated item loose its type hints. This was reported in #50 originally by @galen104