8000 Error with inheritance · Issue #49 · pydantic/pydantic · GitHub
[go: up one dir, main page]

Skip to content

Error with inheritance #49

@samuelcolvin

Description

@samuelcolvin
from pydantic.main import BaseModel

class Foo(BaseModel):
    a: float = ...

class Bar(Foo):
    x: float = 12.3
    a = 123

...
TypeError: issubclass() arg 1 must be a class

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug V1Bug related to Pydantic V1.X

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0