Skip to content

Commit a6450d7

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore: configure new SDK language (#213)
1 parent 92080a5 commit a6450d7

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
33

44
USER vscode
55

6-
RUN curl -sSf https://rye-up.com/get | RYE_VERSION="0.24.0" RYE_INSTALL_OPTION="--yes" bash
6+
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.24.0" RYE_INSTALL_OPTION="--yes" bash
77
ENV PATH=/home/vscode/.rye/shims:$PATH
88

99
RUN echo "[[ -d .venv ]] && source .venv/bin/activate" >> /home/vscode/.bashrc

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- name: Install Rye
2020
run: |
21-
curl -sSf https://rye-up.com/get | bash
21+
curl -sSf https://rye.astral.sh/get | bash
2222
echo "$HOME/.rye/shims" >> $GITHUB_PATH
2323
env:
2424
RYE_VERSION: 0.24.0

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- name: Install Rye
2020
run: |
21-
curl -sSf https://rye-up.com/get | bash
21+
curl -sSf https://rye.astral.sh/get | bash
2222
echo "$HOME/.rye/shims" >> $GITHUB_PATH
2323
env:
2424
RYE_VERSION: 0.24.0

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### With Rye
44

5-
We use [Rye](https://rye-up.com/) to manage dependencies so we highly recommend [installing it](https://rye-up.com/guide/installation/) as it will automatically provision a Python environment with the expected Python version.
5+
We use [Rye](https://rye.astral.sh/) to manage dependencies so we highly recommend [installing it](https://rye.astral.sh/guide/installation/) as it will automatically provision a Python environment with the expected Python version.
66

77
After installing Rye, you'll just have to run this command:
88

requirements-dev.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pydantic==2.7.1
6363
# via openlayer
6464
pydantic-core==2.18.2
6565
# via pydantic
66-
pyright==1.1.359
66+
pyright==1.1.364
6767
pytest==7.1.1
6868
# via pytest-asyncio
6969
pytest-asyncio==0.21.1

src/openlayer/_utils/_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import sniffio
2222

23-
from .._types import Headers, NotGiven, FileTypes, NotGivenOr, HeadersLike
23+
from .._types import NotGiven, FileTypes, NotGivenOr, HeadersLike
2424
from .._compat import parse_date as parse_date, parse_datetime as parse_datetime
2525

2626
_T = TypeVar("_T")
@@ -370,7 +370,6 @@ def file_from_path(path: str) -> FileTypes:
370370
def get_required_header(headers: HeadersLike, header: str) -> str:
371371
lower_header = header.lower()
372372
if isinstance(headers, Mapping):
373-
headers = cast(Headers, headers)
374373
for k, v in headers.items():
375374
if k.lower() == lower_header and isinstance(v, str):
376375
return v

0 commit comments

Comments
 (0)