Skip to content

Commit 9daa357

Browse files
authored
fix: widen type annotations for _internal_arguments and _read_internal_argument (#1491)
1 parent c9fdba4 commit 9daa357

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

packages/uipath-platform/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-platform"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
description = "HTTP client library for programmatic access to UiPath Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath-platform/src/uipath/platform/common/_config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
from functools import cached_property
33
from pathlib import Path
4+
from typing import Any
45

56
from pydantic import BaseModel
67

@@ -183,12 +184,12 @@ def reset(self) -> None:
183184
# Invalidate cached_property by removing from instance __dict__
184185
self.__dict__.pop("_internal_arguments", None)
185186

186-
def _read_internal_argument(self, key: str) -> str | None:
187+
def _read_internal_argument(self, key: str) -> Any:
187188
internal_args = self._internal_arguments
188189
return internal_args.get(key) if internal_args else None
189190

190191
@cached_property
191-
def _internal_arguments(self) -> dict[str, str] | None:
192+
def _internal_arguments(self) -> dict[str, Any] | None:
192193
import json
193194

194195
try:

packages/uipath-platform/uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/uipath/uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)