Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "sap-cloud-sdk"
version = "0.53.3"
version = "0.53.4"
description = "SAP Cloud SDK for Python"
readme = "README.md"
license = "Apache-2.0"
Expand All @@ -9,8 +9,8 @@ authors = [
]
requires-python = ">=3.11"
dependencies = [
"minio>=7.2.16,<7.2.17",
"setuptools>=83.0,<84",
"minio>=7.2.16,<7.2.21",
"setuptools>=83.0,<85",
"requests>=2.33.0,<3",
"requests-oauthlib>=2.0.0,<3",
"pydantic~=2.12.3",
Expand Down Expand Up @@ -46,7 +46,7 @@ starlette = ["starlette>=0.40.0,<1"]
fastapi = ["fastapi>=0.100.0,<1"]
aiohttp = ["aiohttp>=3.9.0,<4"]
sqlalchemy = ["sqlalchemy>=2.0.0,<3"]
django = ["django>=4.0,<5"]
django = ["django>=4.0,<6"]
flask = ["flask>=3.0,<4"]
langgraph = ["langgraph>=1.0.0,<2"]

Expand All @@ -64,9 +64,9 @@ dev = [
"pytest-asyncio>=1.0.0",
"pytest-bdd>=7.2.0",
"python-dotenv>=1.0.0",
"ty==0.0.64",
"ty==0.0.80",
"cryptography>=48.0.1,<51",
"ruff==0.16.0",
"ruff==0.16.7",
"starlette>=0.40.0",
"anyio>=3.6.2",
"httpx>=0.27.0",
Expand Down
3 changes: 2 additions & 1 deletion src/sap_cloud_sdk/adms/_async_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from __future__ import annotations

import asyncio
import inspect
from typing import Any, Callable, Dict, Optional

import httpx
Expand Down Expand Up @@ -216,7 +217,7 @@ async def _bearer_token(self) -> Optional[str]:
"""Resolve the bearer token, handling both sync and async callables."""
if self._get_token is None:
return None
if asyncio.iscoroutinefunction(self._get_token):
if inspect.iscoroutinefunction(self._get_token):
return await self._get_token()
return await asyncio.to_thread(self._get_token)

Expand Down
Loading
Loading