Correct typehinting in QueryCompiler.
Merge pull request #3768 from dereuromark/3.0-typehint

Correct typehinting in QueryCompiler.