Skip to content

Pydantic generics #5

@jaredpmclaughlin

Description

@jaredpmclaughlin

jaredm@JaredLaptop:~/src/netlist-tst$ cat netread.py

#!/usr/bin/python3

from netlist import parse
program = parse("ts808.asc")

jaredm@JaredLaptop:~/src/netlist-tst$ ./netread.py

/home/jaredm/.local/lib/python3.8/site-packages/pydantic/_migration.py:283: UserWarning: pydantic.generics:GenericModel has been moved to pydantic.BaseModel.
warnings.warn(f'{import_path} has been moved to {new_location}.')
Traceback (most recent call last):
File "./netread.py", line 3, in
from netlist import parse
File "/home/jaredm/.local/lib/python3.8/site-packages/netlist/init.py", line 10, in
from .data import *
File "/home/jaredm/.local/lib/python3.8/site-packages/netlist/data.py", line 614, in
tp.pydantic_model.update_forward_refs()
AttributeError: type object 'SourceInfo' has no attribute 'pydantic_model'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions