Aug-26-2021, 05:22 PM
hello I am doing an exercise and I am stuck on a part that I do not understand too much (metaclass). I need to write the MetaInherList metaclass for the ForceToList class to inherit from the built-in list. (read test_meta_list in tests for more information)
def test_meta_list(): test = ForceToList([1, 2]) assert test[1] == 2 assert test.x == 4 class MetaInherList: # todo exercise pass