fix: Prevent backslashes in descriptions from breaking docstrings [#735]. Thanks @robertschweizer & @bryan-hunt!#735
Conversation
9cd6692 to
a1cf1f4
Compare
|
+1 I just encountered this issue consuming a published API and was going to submit the same patch. Here is an example definition that triggers the issue: Modified Petstore |
Codecov Report
@@ Coverage Diff @@
## main #735 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 49 49
Lines 1971 1971
=========================================
Hits 1971 1971 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Thanks for this, I did tweak it so that the diffs will be smaller for folks updating. PEP 257 seems to indicate that a docstring containing a |
We ran into Python parsing errors because we used backslashes in some description strings.