[Bug] MISSING for Object Conf cls argument
See original GitHub issue🐛 Bug
OmegaConf cls argument should not be a mandatory value if target is defined. Can we change this to be an optional value with None being the default?
** Stack trace/error message **
omegaconf.errors.MissingMandatoryValue: Missing mandatory value: scheduler.cls
full_key: scheduler.cls
reference_type=ObjectConf
object_type=ObjectConf
System information
- Hydra Version : 1.0.0rc2
- Python version : 3.7.7
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
How to fix this TypeError for missing 'self' argument
Oops, __new__ receives the class and is supposed to return the newly created object! As your code returns the class itself, thing go...
Read more >bad-classmethod-argument / C0202 - Pylint 2.16.0-dev ...
Description: Used when a class method has a first argument named differently than the value specified in valid-classmethod-first-arg option (default to "cls"), ...
Read more >System Error Messages - InterSystems Documentation
This can indicate that the routine's OBJ code (object code) is corrupt, which can possibly lead to database degradation. Contact your system manager....
Read more >inspect — Inspect live objects — Python 3.11.1 documentation
Return a list of source lines and starting line number for an object. The argument may be a module, class, method, function, traceback,...
Read more >Python Class Constructors: Control Your Object Instantiation
Note that using cls as the name of this argument is a strong convention in Python, just like using self to name the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@shagunsodhani , please clean this up. dunno why I missed it:
You can completely remove everytging after params. just kill cls, this was introduced in Hydra 1.0 and it’s not yet released. I don’t mind breaking here.
Yes. We keep this was as a deprecation. This is much cheaper and is not contaminating interfaces.