Skip to content

Missing a "Resources" or "More examples" section/page #160

@espetro

Description

@espetro

Hello! I'm willing to try this library with some dummy code I have with Pydantic and other serialization/validation libraries. However, I cannot get pass the example of using str. For example, I don't get why the following happens:

from typing import List
from python.sized import NonEmpty

it_works = NonEmpty[str].parse("hello")
it_doesnt_work = NonEmpty[List[int]].parse([1,2])

Is there any additional example with container types, or a recorded talk/workshop showing how this works? Thanks in advance!

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