-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Have bytes
as supported value type.
#844
Comments
Thanks for suggesting this @pedropgusmao. |
Thanks for the suggestion and implementation! I agree this has some merit, as binary is a yaml primitive: https://yaml.org/type/binary.html
If we do support bytes, I'm not sure about the support for converting to/from strings. That would have to be restricted to utf-8, so I don't see the use case for this conversion support |
I've agree about the conversion support -- it's cleaner in my opinion if assigning |
@pedropgusmao, would you mind giving a motivating example? |
Hello @Jasha10 and @pixelb , Tbh, my use case is not really related to conversion the As you must definitely know, both things can be achieved using Hydra, where calling Forgot to mention: This will also help generations to come... eventually. |
Support for |
Is your feature request related to a problem? Please describe.
I need to instantiate an object with another one which is basically a dataclass instance like:
when trying to use this I get:
omegaconf.errors.ValidationError: Unsupported value type: <class 'bytes'>
Example:
Describe the solution you'd like
Accepting
bytes
.Describe alternatives you've considered
Internally interpreting
bytes
asstr
(when parsing) then converting it tobytes
.Additional context
...
The text was updated successfully, but these errors were encountered: