[1.7.x] Added missing import in docs/ref/signals.txt.

Backport of 4a303341fc from master