-
Notifications
You must be signed in to change notification settings - Fork 65
Retire get_schema
in Op | chore!(api)
#698
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d3abfcb
Retire `get_schema` in Op | chore!(api)
justinchuby 4dbb375
Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby 89f8bb5
Update base for Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby 14a7bc9
Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby f38e081
Update base for Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby d7825d2
Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby 3a45755
Update base for Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby 81deba0
Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby fd0757a
Update base for Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby 60b670b
Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby 9d89487
Update base for Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby fb039d6
Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby f12c353
Update base for Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby e4b8ebd
Update on "Retire `get_schema` in Op | chore!(api)"
justinchuby 0aea4df
Merge branch 'main' into gh/justinchuby/24/head
justinchuby 8525e38
Update converter.py
justinchuby e0f311a
Update values.py
justinchuby be5e013
Merge branch 'main' into gh/justinchuby/24/head
justinchuby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@gramalingam
name
isOptional[Union[str, List[str]]]
. Should we change this or the type?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.
Change the type to
optional[str]
... that's what translation ofNone
seems to generateThere 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 you mean changing the name's type to optional[str]?
__str__
always needs to return a string. should we do something to self.name when is it None in this function?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 guess we could do
"" if self.name is None else self.name
. Not sure if and where this is used.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 will add an assert for now since it looks like we don't expect it to be None or anything other than str.
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.
Done
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 have a recollection that this may be used in the translation of
None
... in other words, I suspect we might be creating a ConverterExpression that has no name (that is, self.name is None). However, we likely don't invoke the str method on it. So, it's fine in that sense. (Anyway, I suspect a bigger cleanup of ConverterExpression is due at some point, so that's another reason not to bother much for now.)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.
SG!