Series replace error
- [ ] closes #59452 
- [ ] [Tests added and passed](https://github.com/pandas-dev/pandas/blob/main/pandas/tests/series/methods/test_replace.py) 
- [ ] Added an entry in the latest `doc/source/whatsnew/v3.0.0.rst`

```bash
ruff....................................................................................................Failed
- hook id: ruff
- exit code: 1

pandas/core/generic.py:7493:89: E501 Line too long (89 > 88)
     |
7491 |                     if isinstance(self, ABCSeries):
7492 |                         raise ValueError(
7493 |                             "to_replace and value cannot be dict-like for Series.replace"
     |                                                                                         ^ E501
7494 |                         )
``` Thanks @fbourgey 