-
Notifications
You must be signed in to change notification settings - Fork 146
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
[TASK] Deprecate method forwarding OutputFormat
to OutputFormatter
#894
base: main
Are you sure you want to change the base?
Conversation
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.
I think we need to provide chaining methods before we can do this.
If you edit __call()
to throw an exception in all cases, there are many test failures.
The chaining methods required are clearly-defined by OutputFormatter
. There aren't that many.
I think this would be easier and more preferable than rewriting the tests and changing the API - bear in mind that all users would have to expend similar effort rewriting their code as we would rewriting the tests, if we were to change the API.
When they are all in place, |
I've updated the calls in #898. |
I consider the |
7d695b6
to
ff42244
Compare
I agree, I think. Which is all the more reason to add these methods to |
... unless these methods are all meant for internal use. Will need to check... |
ff42244
to
898fac5
Compare
I think that makes it clear. These are all (only) used by the internal |
21d38b2
to
04a3c1a
Compare
Ping @sabberworm - we need your input here in order to proceed. |
a0b2253
to
8e900ef
Compare
Instead, the corresponding method on the formatter should be called directly. This increases type safety and helps static code analysis. Also, it makes the code easier to understand.
8e900ef
to
b4d7c71
Compare
Instead, the corresponding method on the formatter should be called directly.
This increases type safety and helps static code analysis. Also, it makes the code easier to understand.