DOC: use black to fix code style in doc pandas-dev#36777
Partially addresses #36777. 

Fixed the following files:
- `doc/source/development/extending.rst`
- `doc/source/user_guide/duplicates.rst`
- `doc/source/user_guide/gotchas.rst`
- `doc/source/user_guide/scale.rst`