Skip to content

Commit 413759c

Browse files
committed
Add pop method in ConfigList
1 parent 8bcbda3 commit 413759c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mmengine/config/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,15 +352,16 @@ def to_dict(self):
352352

353353

354354
class ConfigList(LazyContainerMixin, list): # type: ignore
355-
...
355+
356+
def pop(self, idx):
357+
return self.build_lazy(super().pop(idx))
356358

357359

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

361363

362364
class ConfigSet(LazyContainerMixin, set): # type: ignore
363-
...
364365

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

0 commit comments

Comments
 (0)