def addition(options):
left = {<EOL>'<STR_LIT:foo>': '<STR_LIT:bar>',<EOL>'<STR_LIT>': False,<EOL>'<STR_LIT>': {'<STR_LIT>': '<STR_LIT>', '<STR_LIT:a>': '<STR_LIT:b>'},<EOL>}<EOL>right = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': True,<EOL>'<STR_LIT>': {'<STR_LIT>': '<STR_LIT>', '<STR_LIT:c>': '<STR_LIT:d>'},<EOL>}<EOL>merged = {<EOL>'<STR_LIT:foo>': '<STR_LIT:bar>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': True,<EOL>'<STR_LIT>': {'<STR_LIT>': '<STR_LIT>', '<STR_LIT:a>': '<STR_LIT:b>', '<STR_LIT:c>': '<STR_LIT:d>'}<EOL>}<EOL>opposite = {<EOL>'<STR_LIT:foo>': '<STR_LIT:bar>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': False,<EOL>'<STR_LIT>': {'<STR_LIT>': '<STR_LIT>', '<STR_LIT:a>': '<STR_LIT:b>', '<STR_LIT:c>': '<STR_LIT:d>'}<EOL>}<EOL>constructor = options.constructor<EOL>assert_raises(TypeError, lambda: constructor() + <NUM_LIT:1>)<EOL>assert_raises(TypeError, lambda: <NUM_LIT:1> + constructor())<EOL>assert_equals(constructor() + constructor(), {})<EOL>assert_equals(constructor() + {}, {})<EOL>assert_equals({} + constructor(), {})<EOL>assert_equals(constructor(left) + constructor(), left)<EOL>assert_equals(constructor(left) + {}, left)<EOL>assert_equals({} + constructor(left), left)<EOL>assert_equals(constructor() + constructor(left), left)<EOL>assert_equals(constructor() + left, left)<EOL>assert_equals(left + constructor(), left)<EOL>assert_equals(constructor(left) + constructor(right), merged)<EOL>assert_equals(constructor(left) + right, merged)<EOL>assert_equals(left + constructor(right), merged)<EOL>assert_equals(constructor(right) + constructor(left), opposite)<EOL>assert_equals(constructor(right) + left, opposite)<EOL>assert_equals(right + constructor(left), opposite)<EOL>data = {'<STR_LIT>': [{'<STR_LIT:foo>': '<STR_LIT:bar>'}]}<EOL>assert_true(isinstance((constructor(data) + {}).sequence, tuple))<EOL>assert_true(<EOL>isinstance((constructor(data) + constructor()).sequence, tuple)<EOL>)<EOL>assert_true(isinstance((constructor(data, list) + {}).sequence, list))<EOL>assert_true(isinstance((constructor(data, list) + {}).sequence, list))<EOL>assert_true(<EOL>isinstance(<EOL>(constructor(data, list) + constructor({}, list)).sequence,<EOL>list<EOL>)<EOL>)<EOL>
Adding {cls} to other mappings.