File tree Expand file tree Collapse file tree
src/PowerPlatform/Dataverse/operations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767class _BatchContext (Protocol ):
6868 """Structural interface required by batch operation namespaces.
6969
70+ The operation namespaces (BatchRecordOperations, BatchTableOperations, etc.)
71+ accept a ``_BatchContext`` rather than a concrete ``BatchRequest`` or
72+ ``AsyncBatchRequest``, so that the same namespace classes can be reused by
73+ both the sync and async batch implementations without importing either
74+ concrete class — avoiding a circular dependency.
75+
7076 Both :class:`~PowerPlatform.Dataverse.operations.batch.BatchRequest` and
7177 :class:`~PowerPlatform.Dataverse.aio.operations.async_batch.AsyncBatchRequest`
72- satisfy this protocol — no explicit inheritance needed on either class .
78+ satisfy this protocol structurally — no explicit inheritance needed.
7379 """
7480
7581 _items : List [Any ]
You can’t perform that action at this time.
0 commit comments