Skip to content

Changed the default of BaseTesterSettings._env to {} - #14

Merged
david-yz-liu merged 1 commit into
mainfrom
env-default-dict
Oct 18, 2026
Merged

david-yz-liu merged 1 commit into
mainfrom
env-default-dict

Conversation

@david-yz-liu

@david-yz-liu david-yz-liu commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Changes BaseTesterSettings._env from dict[str, Any] | None = None to dict[str, Any] = {}.

The actual generated JSON schema is unchanged as markus-autotesting's generate_schema removes _env from the tester schemas.

🤖 Generated with Claude Code

With a `None` default, `msgspec.to_builtins` writes `"_env": null` for a
tester whose environment has not been created yet, which callers then have to
special-case before using it as a mapping. msgspec copies an empty `{}`
default for each instance, so no explicit factory is needed. `None` is no
longer accepted: `_env` is set only by the autotester itself, never by
submitted settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@david-yz-liu
david-yz-liu merged commit 0639f27 into main Oct 18, 2026
3 checks passed
@david-yz-liu
david-yz-liu deleted the env-default-dict branch October 18, 2026 22:07
david-yz-liu added a commit to MarkUsProject/markus-autotesting that referenced this pull request Oct 18, 2026
`_env` now defaults to `{}` in markus-autotesting-core
(MarkUsProject/markus-autotesting-core#14), so stored settings no longer
contain `"_env": null` and the fallback is unnecessary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant