Skip to content

Color import missing in __init__.py ? #353

@snow6oy

Description

@snow6oy

Hello, I am working with vectors graphics and in the process of adding Pydantic to my code. I ran into an Import Error with this line

python -c 'from pydantic_extra_types import Color'

Pip tells me that both pydantic and the extra packages installed ok ..

$ pip show pydantic
Name: pydantic
Version: 2.12.4
...
Location: ~/code/funcpy/v/lib/python3.9/site-packages
Requires: annotated-types, pydantic-core, typing-extensions, typing-inspection
Required-by: pydantic-extra-types

As a test I added the following line
from pydantic_extra_types.color import Color
to this file
~/code/funcpy/v/lib/python3.9/site-packages/pydantic_extra_types/__init__.py
and the Error went away.

I can continue with my project but raising the issue for awareness. Maybe I missed an installation step, or some packaging is missing?

Thanks.

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