Skip to content

Write readme, increase test coverage#6

Open
thatch wants to merge 1 commit intomainfrom
readme-and-coverage
Open

Write readme, increase test coverage#6
thatch wants to merge 1 commit intomainfrom
readme-and-coverage

Conversation

@thatch
Copy link
Copy Markdown
Member

@thatch thatch commented Mar 31, 2026

No description provided.



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.,

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.

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