Skip to content
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

fix: Config.get returns False instead of None for missing bool keys #482

Merged
merged 1 commit into from Sep 7, 2022

Conversation

seeM
Copy link
Member

@seeM seeM commented Sep 7, 2022

This was causing a bug in nbdev since nbdev.config._apply_defaults only sets the default value if the key was missing, by checking cfg.get(k) is None, which was never true for missing bools

nbdev should probably use k not in cfg instead of cfg.get(k) is None, but I consider this to also be a bug in fastcore

@seeM seeM added the bug Something isn't working label Sep 7, 2022
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@seeM
Copy link
Member Author

seeM commented Sep 7, 2022

cc @hamelsmu @jph00

@jph00 jph00 merged commit 894bf94 into fastai:master Sep 7, 2022
@seeM seeM deleted the fix-config-get branch September 9, 2022 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants