Skip to content

Pydantic dependency issue #1291

@sjgreig27

Description

@sjgreig27

Describe the bug

Here is a portion of the stacktrace demonstrating the issue we are having...

    from supabase import Client, create_client
  File "/opt/venv/lib/python3.10/site-packages/supabase/__init__.py", line 1, in <module>
    from supabase_auth.errors import (
  File "/opt/venv/lib/python3.10/site-packages/supabase_auth/__init__.py", line 3, in <module>
    from ._async.gotrue_admin_api import AsyncGoTrueAdminAPI
  File "/opt/venv/lib/python3.10/site-packages/supabase_auth/_async/gotrue_admin_api.py", line 8, in <module>
    from ..helpers import (
  File "/opt/venv/lib/python3.10/site-packages/supabase_auth/helpers.py", line 31, in <module>
    from .types import (
  File "/opt/venv/lib/python3.10/site-packages/supabase_auth/types.py", line 822, in <module>
    @with_config(extra="allow")
TypeError: with_config() got an unexpected keyword argument 'extra'

Just for additional context, we are currently using pydantic = "2.7.0" and will need to update this

I think the issue is with this code here and there is certainly no issue with the change that was made.

However, would it be possible to update the pyproject.toml file in the Supabase auth package?

"pydantic >=1.10,<3",

I think the @with_config might have been introduced in Pydantic 2.7.0 and the addition of keyword arguments looks like it was maybe introduced in Pydantic 2.11.0. Would it be possible to update the pyproject.toml file to reflect the lower bound for the compatible version of Pydantic is now higher than it previously was?

Apologies if this is simply a misunderstanding on my part and thank you for putting together such a useful client - Supabase is awesome!

Reproduction

Python 3.10
Pydantic 2.7.0


    from supabase import Client, create_client
  File "/opt/venv/lib/python3.10/site-packages/supabase/__init__.py", line 1, in <module>
    from supabase_auth.errors import (
  File "/opt/venv/lib/python3.10/site-packages/supabase_auth/__init__.py", line 3, in <module>
    from ._async.gotrue_admin_api import AsyncGoTrueAdminAPI
  File "/opt/venv/lib/python3.10/site-packages/supabase_auth/_async/gotrue_admin_api.py", line 8, in <module>
    from ..helpers import (
  File "/opt/venv/lib/python3.10/site-packages/supabase_auth/helpers.py", line 31, in <module>
    from .types import (
  File "/opt/venv/lib/python3.10/site-packages/supabase_auth/types.py", line 822, in <module>
    @with_config(extra="allow")
TypeError: with_config() got an unexpected keyword argument 'extra'

Steps to reproduce

No response

Library affected

supabase-auth

Library version

supabase_auth v2.23.0

Python version

python3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions