Skip to content

insert does not expect TypedDict provided by generated types #1443

@microfauna

Description

@microfauna

Describe the bug

Following the guidance here:
https://supabase.com/docs/guides/api/rest/generating-python-types

# Insert
inserted = [PublicMovies(m) for m in movies.insert(PublicMoviesInsert(name="foo", data="bar")) \
                                          .execute().data]

I generated types for our db using the new CLI tool; the issue is (and this could just be a IDE / editor config issue) - supabase is marked to only accept JSON as inputs - and does not like the generated input I am giving it. I included a screenshot of the signature in the library - which just wants JSON - i'd prefer not to add it as an exception to the linter if I can avoid that.

Image Image Image

Reproduction

Included above

Steps to reproduce

No response

Library affected

supabase-py

Library version

2.28.3

Python version

3.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpythonPull requests that update Python code

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions