-
Notifications
You must be signed in to change notification settings - Fork 64
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
Automatically convert image and html like assignments to uploads #1006
Conversation
bdb5a00
to
d0dce06
Compare
Test Results 2 files - 38 2 suites - 38 1m 48s ⏱️ - 3h 49m 14s Results for commit a11c8f9. ± Comparison against base commit 497347c. This pull request removes 691 and adds 484 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
d0dce06
to
30e4767
Compare
e1bc8bb
to
235922c
Compare
from neptune.new.types.value_copy import ValueCopy | ||
|
||
|
||
def cast_value(value: Any) -> Value: |
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.
As we extracted this func (which is so cool!) what do you think about using a single-dispatch? https://docs.python.org/3.7/library/functools.html#functools.singledispatch You should be able to split this function into multiple one that will be triggered base on arguments 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.
I think it's a good idea.
Let's try it.
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.
Or maybe not.
We do casting not only based on type, but also on predicate which looks like it's not supported by singledispatch.
@@ -14,14 +14,12 @@ | |||
# limitations under the License. |
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.
CHANGELOG?
No description provided.