Credit to Yuya for the idea of annotating the class as though it was a
callable. I honestly didn't expect this to work, but it does!
We annotate this awkwardly on a name alias of the type because putting
the annotation directly on the class ...: line as a comment breaks
black and I don't want to go down that rabbit hole.