Skip to content

fix: pass path directly to toml.load() instead of opening file#31

Merged
orsinium merged 1 commit into
orsinium-labs:masterfrom
omarkohl:jip/pass-path-directly-to-toml/zzxruoqw
Apr 13, 2026
Merged

fix: pass path directly to toml.load() instead of opening file#31
orsinium merged 1 commit into
orsinium-labs:masterfrom
omarkohl:jip/pass-path-directly-to-toml/zzxruoqw

Conversation

@omarkohl

@omarkohl omarkohl commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

The fallback path for the toml library opened the file in binary mode
with an encoding argument (open('rb', encoding='utf8')), which raises
a ValueError since binary mode doesn't accept encoding. Rather than
fixing the open mode, pass the path directly to toml.load() which
accepts file paths natively and handles encoding internally.

The fallback path for the `toml` library opened the file in binary mode
with an encoding argument (`open('rb', encoding='utf8')`), which raises
a ValueError since binary mode doesn't accept encoding. Rather than
fixing the open mode, pass the path directly to `toml.load()` which
accepts file paths natively and handles encoding internally.
@netlify

netlify Bot commented Apr 9, 2026

Copy link
Copy Markdown

Deploy Preview for mypy-baseline ready!

Name Link
🔨 Latest commit 5947cc0
🔍 Latest deploy log https://app.netlify.com/projects/mypy-baseline/deploys/69d768b62e30a50008b3be68
😎 Deploy Preview https://deploy-preview-31--mypy-baseline.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@orsinium

Copy link
Copy Markdown
Member

thank you

@orsinium
orsinium merged commit 0c4229d into orsinium-labs:master Apr 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants