Skip to content

Add NOTHING constant #18

Open
Open
@nrbnlulu

Description

I think this is a common usecase

@dataclass
class UpdateSomethingDTO:
	im_optional: Maybe[str] = Nothing()

which would be eaise to do

@dataclass
class UpdateSomethingDTO:
	im_optional: Maybe[str] = NOTHING

There is also this ruff false positive if someone cares about this...
image

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