Fix type hint of UrlGenerator
Merge pull request #3576 from Anahkiasen/hints

Fix type hint of UrlGenerator