Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Conversation

Conobi
Copy link
Contributor

@Conobi Conobi commented Apr 18, 2023

What kind of change does this PR introduce?

It simply update the function prototype of upload to type correctly the file argument

What is the current behavior?

The upload function implements the management of Bytes/IO-like buffers, but the types of the functions doesn't allow their use.

extra_headers = {"Content-Type": "application/json"}
body = {**DEFAULT_SEARCH_OPTIONS, **extra_options, "prefix": path or ""}
body = {**DEFAULT_SEARCH_OPTIONS, **
extra_options, "prefix": path or ""}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the odd line-splits? It looked better before I think 😅

@anand2312
Copy link
Contributor

Tests are failing because of the odd style changes introduced in this PR that Black (the code formatter) doesn't like. Please run Black on the changed files.

@Conobi
Copy link
Contributor Author

Conobi commented Apr 25, 2023

Done!

@anand2312
Copy link
Contributor

Thanks!

@anand2312 anand2312 merged commit 40fc84b into supabase:main Apr 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants