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 @@ -68,10 +68,11 @@ class _BatchContext(Protocol):
6868 """Structural interface required by batch operation namespaces.
6969
7070 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.
71+ are pure (no I/O) and shared by both the sync and async batch implementations.
72+ This Protocol allows them to type-annotate their ``batch`` parameter correctly
73+ without importing either concrete class (``BatchRequest`` or
74+ ``AsyncBatchRequest``), which would require ``# type: ignore`` or create a
75+ circular import.
7576
7677 Both :class:`~PowerPlatform.Dataverse.operations.batch.BatchRequest` and
7778 :class:`~PowerPlatform.Dataverse.aio.operations.async_batch.AsyncBatchRequest`
You can’t perform that action at this time.
0 commit comments