Skip to content

Commit 7a3e6bc

Browse files
tpellissierclaude
andcommitted
Fix PR review comments: docstring typo and import location
- Fix docstring in results.py: RequestMetadata -> RequestTelemetryData - Move Tuple import to top of _odata.py with other typing imports Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f113f76 commit 7a3e6bc

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/PowerPlatform/Dataverse/core/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
`.with_response_details()` API pattern for accessing telemetry data.
99
1010
Classes:
11-
RequestMetadata: Immutable HTTP request/response metadata for diagnostics.
11+
RequestTelemetryData: Immutable HTTP request/response metadata for diagnostics.
1212
DataverseResponse: Standard response object with result and telemetry.
1313
OperationResult: Wrapper enabling fluent .with_response_details() pattern.
1414
"""

src/PowerPlatform/Dataverse/data/_odata.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from __future__ import annotations
77

8-
from typing import Any, Dict, Optional, List, Union, Iterable, Callable
8+
from typing import Any, Dict, Optional, List, Union, Iterable, Callable, Tuple
99
from enum import Enum
1010
from dataclasses import dataclass, field
1111
import unicodedata
@@ -43,8 +43,6 @@
4343
_DEFAULT_EXPECTED_STATUSES: tuple[int, ...] = (200, 201, 202, 204)
4444

4545
# Type alias for request results with metadata
46-
from typing import Tuple
47-
4846
_ODataRequestResult = Tuple[Any, RequestTelemetryData]
4947

5048

0 commit comments

Comments
 (0)