Skip to content

Python 3.14 NotImplementedError #1618

@patrizok

Description

@patrizok

Privileged issue

  • I'm @tiangolo or he asked me directly to create an issue here.

Issue Content

I couldn't start discussion I am not @tiangolo sorry but I have a problem.

Python 3.14 NotImplementedError

from sqlmodel import Field, SQLModel

class Hero(SQLModel, table=True):
    id: int | None = Field(default=None, primary_key=True)
    name: str
    secret_name: str
    age: int | None = None

Python VSCode development

Enabled Breakpoints:
Raised Exceptions

I got exception

Exception has occurred: NotImplementedError
exception: no description
  File "/usr/src/app/a.py", line 4, in __annotate__
    class Hero(SQLModel, table=True):
    
  File "/usr/src/app/a.py", line 4, in <module>
    class Hero(SQLModel, table=True):
NotImplementedError: 

I can't debug my code, everytime I do debug I have to disable breakpoint then run and re open again.

Why library throws exception? Other libraries doesn't, also I think it started with python version 3.14

Thanks.

0.0.27, Linux, VSCode, Python 3.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions