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

Type error with dataconf.dict #64

Closed
LEv145 opened this issue Dec 3, 2022 · 1 comment
Closed

Type error with dataconf.dict #64

LEv145 opened this issue Dec 3, 2022 · 1 comment

Comments

@LEv145
Copy link

LEv145 commented Dec 3, 2022

Code:

config: BaseConfig = dataconf.dict(data, BaseConfig)

Error:

Argument of type "dict[str, Any]" cannot be assigned to parameter "obj" of type "str" in function "dict"
  "dict[str, Any]" is incompatible with "str"

obj must be dict[str, Any]

zifeo added a commit that referenced this issue Dec 3, 2022
@zifeo
Copy link
Owner

zifeo commented Dec 5, 2022

@LEv145 2.1.3 has been released and should solve this. Let us know!

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

No branches or pull requests

2 participants