Skip to content

Commit 85d2edf

Browse files
author
stlc-bot
committed
chore: update default branch name to main
Stainless-Generated-From: 86d9ed6
1 parent 7f3623f commit 85d2edf

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
6262
To install via git:
6363

6464
```sh
65-
$ pip install git+ssh://git@github.com/imagekit-developer/imagekit-python#master.git
65+
$ pip install git+ssh://git@github.com/imagekit-developer/imagekit-python.git
6666
```
6767

6868
Alternatively, you can build from source and install the wheel file:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,9 +722,9 @@ file = response.parse() # get the object that `files.upload()` would have retur
722722
print(file.file_id)
723723
```
724724

725-
These methods return an [`APIResponse`](https://github.com/imagekit-developer/imagekit-python/tree/master/src/imagekitio/_response.py) object.
725+
These methods return an [`APIResponse`](https://github.com/imagekit-developer/imagekit-python/tree/main/src/imagekitio/_response.py) object.
726726

727-
The async client returns an [`AsyncAPIResponse`](https://github.com/imagekit-developer/imagekit-python/tree/master/src/imagekitio/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
727+
The async client returns an [`AsyncAPIResponse`](https://github.com/imagekit-developer/imagekit-python/tree/main/src/imagekitio/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
728728

729729
#### `.with_streaming_response`
730730

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ path = "README.md"
127127
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
128128
# replace relative links with absolute links
129129
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
130-
replacement = '[\1](https://github.com/imagekit-developer/imagekit-python/tree/master/\g<2>)'
130+
replacement = '[\1](https://github.com/imagekit-developer/imagekit-python/tree/main/\g<2>)'
131131

132132
[tool.pytest.ini_options]
133133
testpaths = ["tests"]

scripts/utils/upload-artifact.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ UPLOAD_RESPONSE=$(curl -v -X PUT \
2020

2121
if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
2222
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
23-
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/imagekit-python-staging/$SHA/$FILENAME'\033[0m"
23+
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/imagekit-python/$SHA/$FILENAME'\033[0m"
2424
else
2525
echo -e "\033[31mFailed to upload artifact.\033[0m"
2626
exit 1

src/imagekitio/_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def assert_is_file_content(obj: object, *, key: str | None = None) -> None:
3636
if not is_file_content(obj):
3737
prefix = f"Expected entry at `{key}`" if key is not None else f"Expected file input `{obj!r}`"
3838
raise RuntimeError(
39-
f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/imagekit-developer/imagekit-python/tree/master#file-uploads"
39+
f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/imagekit-developer/imagekit-python/tree/main#file-uploads"
4040
) from None
4141

4242

0 commit comments

Comments
 (0)