dependencies: Fix type of dependency_factory decorator
dependencies: Fix type of dependency_factory decorator

There was both a straight up bug in the type signature (the return type
is List[Callable[[], Dependency]] not List[Type[Dependency]]), and in
the way the arguments are assembled. Typing is pretty limited in it's
ability to express decorators, so the best mypy can do is check the
return types (I think). I've done what the docs suggest and it's stopped
complaining.

mesonbuild/meson,jpakkane/meson,mesonbuild/meson,mesonbuild/meson,jpakkane/meson,QuLogic/meson,mesonbuild/meson,pexip/meson,mesonbuild/meson,pexip/meson,QuLogic/meson,jpakkane/meson,mesonbuild/meson,mesonbuild/meson,pexip/meson,jpakkane/meson,jpakkane/meson,jpakkane/meson,pexip/meson,pexip/meson,mesonbuild/meson,pexip/meson,jpakkane/meson,mesonbuild/meson,QuLogic/meson,pexip/meson,QuLogic/meson,jpakkane/meson,QuLogic/meson,pexip/meson,QuLogic/meson,QuLogic/meson,mesonbuild/meson,pexip/meson,pexip/meson,jpakkane/meson,QuLogic/meson,QuLogic/meson