-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Replace py.io.TextIO with io.StringIO #6064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
In Python3, py.io.TextIO is just an alias to io.StringIO. Remove the indirection.
nicoddemus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 👍
|
Thanks for this! |
Seems to perfectly fit the bill for |
|
Well, it was causing conflicts with typing changes (also from @bluetech IIRC). |
|
Also "trivial" is more like fixing some typo in my opinion, not changing imports in multiple files. |
|
this change literally does nothing, they are referrentially equal -- if this isn't trivial I don't know what is |
- make it clear that the text should be deleted, which is often not the case - resulting in handling it as incomplete TODOs - clarify targetting master/features and make it a single actionable item. Ref: pytest-dev#6064 (comment) - fix punctuation
|
=> #6104 |
In Python3,
py.io.TextIOis just an alias toio.StringIO. Remove the indirection.