Skip to content

Treat methodize default_from placeholders as 'no default' (i2.is_placeholder_default) #50

Closed

Description

@thorwhalen

Follow-up of i2mint/i2#120 (PR i2mint/i2#121, once released). A methodize(..., default_from=...) signature default is an i2.wrapper.InstanceAttrDefault marker, not a JSON-able value. param_default in front/util.py only treats NotSet as "no default" (via is_not_set).

To do: use i2.is_placeholder_default (NotSet or any i2.DefaultPlaceholder) when available, keeping the is_not_set fallback for older i2; add a test feeding a methodized function.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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