Skip to content

param_default: treat i2 placeholder defaults (methodize default_from) as no default - #51

Merged
thorwhalen merged 1 commit into
masterfrom
placeholder-default
Oct 20, 2026
Merged

thorwhalen merged 1 commit into
masterfrom
placeholder-default

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Closes #50.

param_default now uses i2.is_placeholder_default (NotSet or any i2.DefaultPlaceholder, such as the InstanceAttrDefault marker methodize(..., default_from=...) puts in a signature), with fallbacks to is_not_set and to the bare NotSet check for older i2.

New test feeds a methodized function through param_default, func_to_pyd_model_specs and an int input element (skipped on i2 without DefaultPlaceholder); it fails without the change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Nik18BJacRW8GJzUfdkpsY

Use i2.is_placeholder_default (NotSet or any i2.DefaultPlaceholder, e.g. the
marker methodize(..., default_from=...) puts in a signature), falling back to
is_not_set / NotSet for older i2. Closes #50.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thorwhalen
thorwhalen merged commit 2fcce7a into master Oct 20, 2026
12 checks passed
@thorwhalen
thorwhalen deleted the placeholder-default branch October 20, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant