fix docstrings in restriction.py

3 jobs for master in 13 seconds (queued for 2 seconds)