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

consequently handle config data internally as libioc.Config.Data.Data #715

Merged
merged 2 commits into from
Apr 20, 2019

Conversation

gronke
Copy link
Member

@gronke gronke commented Apr 20, 2019

fixes #714

  • fix error when setting defaults
  • consequently handle config data internally as libioc.Config.Data.Data

@gronke gronke added the bug label Apr 20, 2019
@gronke gronke merged commit 56d1c4c into master Apr 20, 2019
@igalic igalic deleted the fix/setting-defaults branch April 20, 2019 16:57
Copy link
Collaborator

@igalic igalic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙋❓

@@ -67,7 +69,7 @@ def file(self) -> str:
def file(self, value: str) -> None:
self._file = value

def read(self) -> ConfigDataDict:
def read(self) -> libioc.Config.Data.Data:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the difference between these two types?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libioc.Config.Data.Data inherits from dict, but provides a compatibility layer for flat config property names. It evens out the difference between data["user"]["comment"] and data["user.comment"], which is needed for support with prior config pattern. Looking forward to continue work on #656.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Defaults cannot be set
2 participants