-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Custom message on Live
overflow
#3702
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
base: master
Are you sure you want to change the base?
Conversation
Bump @willmcgugan, could we at least run tests. (Curious why you don't allow tests to run for all PRs?) |
That used to be the case. Github changed it, and I haven't changed it back. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3702 +/- ##
==========================================
- Coverage 98.24% 97.98% -0.27%
==========================================
Files 74 74
Lines 8105 8147 +42
==========================================
+ Hits 7963 7983 +20
- Misses 142 164 +22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 am reluctant to add new parameters, as constructor signatures can get excessively large.
Since this parameter doesn't seem essential, how about an alternative way of configuring it? Perhaps a get_vertical_overflow_message
method, so it could be customized in a subclass.
@@ -59,7 +71,9 @@ def __init__( | |||
transient: bool = False, | |||
redirect_stdout: bool = True, | |||
redirect_stderr: bool = True, | |||
vertical_overflow: VerticalOverflowMethod = "ellipsis", | |||
vertical_overflow: Union[ |
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'm not keen on overloading a parameter like this. If it becomes a general purpose extension mechanism, it could quickly become unwieldy. I'd prefer to keep the message a separate value.
Type of changes
Checklist
Description
Allow a custom message with a
Live
overflows, instead of an ellipsis.