Skip to content

Commit

Permalink
Add pop method in ConfigList
Browse files Browse the repository at this point in the history
  • Loading branch information
HAOCHENYE committed Oct 26, 2023
1 parent 8bcbda3 commit 413759c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mmengine/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,16 @@ def to_dict(self):


class ConfigList(LazyContainerMixin, list): # type: ignore
...

def pop(self, idx):
return self.build_lazy(super().pop(idx))


class ConfigTuple(LazyContainerMixin, tuple): # type: ignore
...


class ConfigSet(LazyContainerMixin, set): # type: ignore
...

def pop(self, idx):
return self.build_lazy(super().pop(idx))
Expand Down

0 comments on commit 413759c

Please sign in to comment.