Skip to content

Commit a833617

Browse files
Abel Milashclaude
andcommitted
Fix _BatchBase.__init__ type: od is _ODataBase, not _ODataClient
The async batch client will pass an async OData client that inherits from _ODataBase, not _ODataClient. _BatchBase only calls pure _build_* methods defined on _ODataBase, so the broader base type is correct. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d01181e commit a833617

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PowerPlatform/Dataverse/data/_batch_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from ._odata_base import _GUID_RE
2929

3030
if TYPE_CHECKING:
31-
from ._odata import _ODataClient
31+
from ._odata_base import _ODataBase
3232

3333
__all__ = []
3434

@@ -384,7 +384,7 @@ class _BatchBase:
384384
:param od: The active OData client (provides helpers and HTTP transport).
385385
"""
386386

387-
def __init__(self, od: "_ODataClient") -> None:
387+
def __init__(self, od: "_ODataBase") -> None:
388388
self._od = od
389389

390390
# ------------------------------------------------------------------

0 commit comments

Comments
 (0)