[Bug]: Python emitter moves my # pylint: disable=protected-access
around in _patch.py, make it no longer effective
#5583
Labels
bug
Something isn't working
emitter:client:python
Issue for the Python client emitter: @typespec/http-client-python
Describe the bug
I added the line
# pylint: disable=protected-access
in my _patch.py file to make a Pylint error go away. Note that it has to be in the same line as where the property is accessed, otherwise the error will not go away.After re-emitting from TypeSpec, I see that _patch.py was edited, and the emitter decided to move
# pylint: disable=protected-access
to the end of the multi-line instruction. That results in the Pylint error appearing again.Is there a way to fix the emitter to not do that? Thanks!
(and BTW the original multi-line instruction is a result of running the black tool
black --config ../../../eng/black-pyproject.toml .
It was the one who broke the line into multiple lines)Screenshot of the diff after re-emitting:
Reproduction
See above
Checklist
The text was updated successfully, but these errors were encountered: