Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.18
3.10.20
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ dependencies = [
"uuid-utils>=0.11.0",
]

requires-python = ">= 3.9"
requires-python = ">= 3.10"
classifiers = [
"Typing :: Typed",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export DEFER_PYDANTIC_BUILD=false

# Note that we need to specify the patch version here so that uv
# won't use unstable (alpha, beta, rc) releases for the tests
PY_VERSION_MIN=">=3.9.0"
PY_VERSION_MIN=">=3.10.0"
PY_VERSION_MAX=">=3.14.0"

function run_tests() {
Expand Down
20 changes: 0 additions & 20 deletions src/runloop_api_client/_utils/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,26 +344,6 @@ def maybe_coerce_boolean(val: str | None) -> bool | None:
return coerce_boolean(val)


def removeprefix(string: str, prefix: str) -> str:
"""Remove a prefix from a string.

Backport of `str.removeprefix` for Python < 3.9
"""
if string.startswith(prefix):
return string[len(prefix) :]
return string


def removesuffix(string: str, suffix: str) -> str:
"""Remove a suffix from a string.

Backport of `str.removesuffix` for Python < 3.9
"""
if string.endswith(suffix):
return string[: -len(suffix)]
return string


def file_from_path(path: str) -> FileTypes:
contents = Path(path).read_bytes()
file_name = os.path.basename(path)
Expand Down
Loading