Skip to content

Write readme, increase test coverage#6

Merged
thatch merged 2 commits into
mainfrom
readme-and-coverage
Apr 9, 2026
Merged

Write readme, increase test coverage#6
thatch merged 2 commits into
mainfrom
readme-and-coverage

Conversation

@thatch
Copy link
Copy Markdown
Member

@thatch thatch commented Mar 31, 2026

No description provided.

Comment thread tests/test_source_map.py Outdated


def test_build_toml_aot():
sm = build_source_map("[[items]]\nname = \"a\"\n[[items]]\nname = \"b\"\n", fmt="toml")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The multiline constants are a little silly, I'm on the fence about whether textwrap helps or not.,

Comment thread README.md Outdated
config = msgspec.convert(data, Config)
```

If `msgspec.convert` raises because `port` is a string instead of an integer,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd add this explanation above this:

ParseContext will intercept exceptions. If it can analyze them for precise locations, it will raise a ParseError exception with the original exception as the cause. If it can't find location information, the original exception is raised as-is. No exceptions are swallowed.

@thatch thatch merged commit 7beb5bf into main Apr 9, 2026
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.

2 participants