from typing import *
import copy

class GenericObjectEditorHistory():
    MAX_HISTORY_COUNT=10
    def __init__(self):
        self.m_History=[]       #type:List

    def add(self,obj:object):
        obj=copy.deepcopy(obj)
        if obj in self.m_History:
            self.m_History.remove(obj)
        self.m_History.insert(0,obj)
        while len(self.m_History) > self.MAX_HISTORY_COUNT:
            self.m_History.pop()


4ecb33e240817f2ef3b19a05965ce8b2559c9588
<mask token>


class GenericObjectEditorHistory:
    <mask token>

    def __init__(self):
        self.m_History = []
    <mask token>

<mask token>


class GenericObjectEditorHistory:
    <mask token>

    def __init__(self):
        self.m_History = []

    def add(self, obj: object):
        obj = copy.deepcopy(obj)
        if obj in self.m_History:
            self.m_History.remove(obj)
        self.m_History.insert(0, obj)
        while len(self.m_History) > self.MAX_HISTORY_COUNT:
            self.m_History.pop()

<mask token>


class GenericObjectEditorHistory:
    MAX_HISTORY_COUNT = 10

    def __init__(self):
        self.m_History = []

    def add(self, obj: object):
        obj = copy.deepcopy(obj)
        if obj in self.m_History:
            self.m_History.remove(obj)
        self.m_History.insert(0, obj)
        while len(self.m_History) > self.MAX_HISTORY_COUNT:
            self.m_History.pop()

from typing import *
import copy


class GenericObjectEditorHistory:
    MAX_HISTORY_COUNT = 10

    def __init__(self):
        self.m_History = []

    def add(self, obj: object):
        obj = copy.deepcopy(obj)
        if obj in self.m_History:
            self.m_History.remove(obj)
        self.m_History.insert(0, obj)
        while len(self.m_History) > self.MAX_HISTORY_COUNT:
            self.m_History.pop()

from typing import *
import copy

class GenericObjectEditorHistory():
    MAX_HISTORY_COUNT=10
    def __init__(self):
        self.m_History=[]       #type:List

    def add(self,obj:object):
        obj=copy.deepcopy(obj)
        if obj in self.m_History:
            self.m_History.remove(obj)
        self.m_History.insert(0,obj)
        while len(self.m_History) > self.MAX_HISTORY_COUNT:
            self.m_History.pop()

