Add *args
to Middleware
and improve its type hints
#2381
+77
−36
Merged