Uh oh!
There was an error while loading. Please reload this page.
Make RowTypeConstraint callable, test nested optional row in schemas and RowCoder - #22899
Conversation
TheNeuralBit
commented
Aug 25, 2022
R: @chamikaramj |
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
Codecov Report
@@ Coverage Diff @@## master #22899 +/- ##
==========================================
+ Coverage 73.69% 73.72% +0.03%
==========================================
Files 713 714 +1 Lines 94988 95393 +405 ==========================================
+ Hits 69998 70332 +334 - Misses 23689 23760 +71
Partials 1301 1301
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Could you clarify why we need to make this a callable for Python to recognize it as a type (may be also update the comment here) ?
There was a problem hiding this comment.
I'm not sure if there's a better reference on this, but the CPython implementation explicitly considers anything that's callable a type:
https://github.com/python/cpython/blob/d348afa15d5a997e7a8e51c0f789f41cb15cc651/Lib/typing.py#L137-L167
There was a problem hiding this comment.
It looks like this is actually being relaxed in Python 3.11: python/cpython@870b22b#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887
There was a problem hiding this comment.
I see. Optionally, add a comment that this can be removed after we are fully in Python 3.11 (whenever that is).
TheNeuralBit
commented
Aug 26, 2022
Run Python PreCommit |
There was a problem hiding this comment.
I see. Optionally, add a comment that this can be removed after we are fully in Python 3.11 (whenever that is).
chamikaramj
commented
Aug 30, 2022
@TheNeuralBit Can this be merged ? |
TheNeuralBit
commented
Aug 31, 2022
Let me add a comment with an explanation, then I will self-merge. Thanks! |
TheNeuralBit
commented
Aug 31, 2022
Run Python PreCommit |
1 similar comment
TheNeuralBit
commented
Aug 31, 2022
Run Python PreCommit |
Fixes#22854
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.