py-automapper icon indicating copy to clipboard operation
py-automapper copied to clipboard

Support duplicate source objects in adding mappings

Open bmulh opened this issue 1 year ago • 0 comments

It would be nice to be able to register multiple mappings for the same source object like:

mapper.add(Foo, Bar)
mapper.add(Foo, Baz)

foo = Foo()
bar = mapper.map(foo, Bar)
baz = mapper.map(foo, Baz)

bmulh avatar Oct 24 '23 16:10 bmulh