Skip to content

set_key: Add ability to write key with no value (None) - #741

Open
bbc2 wants to merge 1 commit into
theskumar:mainfrom
bbc2:set-key-none
Open

bbc2 wants to merge 1 commit into
theskumar:mainfrom
bbc2:set-key-none

Conversation

@bbc2

@bbc2 bbc2 commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

With this change, a call to set_key(".env", "A") will write A on a single line (instead of something like A='').

This is symmetric with the way bindings are read (A is read as "A": None) by dotenv_values.

Supersedes #454.

With this change, a call to `set_key(".env", "A")` will write `A` on a
single line (instead of something like `A=''`).

This is symmetric with the way bindings are read (`A` is read as `"A":
None`) by `dotenv_values`.

This branch has not been deployed

No deployments
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