Skip to content

[feat] migrate Guard.from_ to Guard.for_ #1096

@zsimjee

Description

@zsimjee

Guard.from_pydantic, from_string, etc...

the from_* is not really a good way to describe what's going on. The guard is not being created from the pydantic object, string, etc... instead it's being created for validation over those types.

The plan is to deprecate from_* in 0.6.0, rip it out totally in the next minor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions