-
Notifications
You must be signed in to change notification settings - Fork 118
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
Update StringType repr #1129
base: main
Are you sure you want to change the base?
Update StringType repr #1129
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.
Do we not have a JIRA associated with this? If yes, please attach to the PR title. If not, please be more descriptive on why we want to make this change in the PR description.
@sfc-gh-aalam I'm very confused why this test failed from this change. It looks irrelevant to StringType. |
@@ -84,7 +84,7 @@ def __init__(self, length: Optional[int] = None) -> None: | |||
self.length = length | |||
|
|||
def __repr__(self) -> str: | |||
if self.length: | |||
if self.length and self.length != self._MAX_LENGTH: |
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.
Why do we display the length when it's MAX_LENGTH
?
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.
The code is when the length is not max_length.
I'm also curious as to why we need this change. Is this going to a BCR? |
Please answer these questions before submitting your pull requests. Thanks!
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #NNNN
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Please write a short description of how your code change solves the related issue.