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

Relax bind() argument type to Mapping #3

Closed
mthuurne opened this issue Feb 22, 2023 · 0 comments · Fixed by #4
Closed

Relax bind() argument type to Mapping #3

mthuurne opened this issue Feb 22, 2023 · 0 comments · Fixed by #4
Labels
enhancement New feature or request

Comments

@mthuurne
Copy link
Member

Currently Binder.bind() takes a dict argument:

def bind(cls, data: dict[str, Any]) -> T:

However, as we don't modify the argument, Mapping would suffice. This would make the binder able to parse data structures from other sources than tomllib.

@mthuurne mthuurne added the enhancement New feature or request label Feb 22, 2023
mthuurne added a commit that referenced this issue Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant