fix docstrings in restriction.py

3 jobs for master in 13 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Build
passed sphinx #138072

00:00:07

 
  Deploy
passed pages #138073

00:00:05

passed pages:deploy

00:00:00