• Roman Shapovalov's avatar
    Return a typed structured config from default_args for callables · 645a47d0
    Roman Shapovalov authored
    Summary:
    Before the fix, running get_default_args(C: Callable) returns an unstructured DictConfig which causes Enums to be handled incorrectly. This is a fix.
    
    WIP update: Currently tests still fail whenever a function signature contains an untyped argument: This needs to be somehow fixed.
    
    Reviewed By: bottler
    
    Differential Revision: D34932124
    
    fbshipit-source-id: ecdc45c738633cfea5caa7480ba4f790ece931e8
    645a47d0
test_config.py 20.4 KB