Closed mthuurne closed 1 year ago
Currently Binder.bind() takes a dict argument:
Binder.bind()
dict
https://github.com/ProtixIT/dataclass-binder/blob/8e747018517dddfa91bdf4c3413126759779fbba/src/dataclass_binder/_impl.py#L346
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.
Mapping
tomllib
Currently
Binder.bind()
takes adict
argument:https://github.com/ProtixIT/dataclass-binder/blob/8e747018517dddfa91bdf4c3413126759779fbba/src/dataclass_binder/_impl.py#L346
However, as we don't modify the argument,
Mapping
would suffice. This would make the binder able to parse data structures from other sources thantomllib
.