MCPcopy
hub / github.com/ArtifexSoftware/pdf2docx / __init__

Method __init__

pdf2docx/common/Collection.py:14–18  ·  view source on GitHub ↗

Init collection from a list of instances.

(self, instances:list=None, parent=None)

Source from the content-addressed store, hash-verified

12class BaseCollection:
13 '''Base collection representing a list of instances.'''
14 def __init__(self, instances:list=None, parent=None):
15 '''Init collection from a list of instances.'''
16 self._parent = parent
17 self._instances = []
18 self.extend(instances or []) # Note to exclude empty instance by default
19
20 def __getitem__(self, idx):
21 try:

Callers

nothing calls this directly

Calls 1

extendMethod · 0.95

Tested by

no test coverage detected