Skip to content

Conversation

arjenzorgdoc
Copy link

The type of the Click env parameter is Mapping[str, str | None] | None. This can be used to "delete" an environment variable.

The type of the Click env parameter is Mapping[str, str | None] | None. This can be used to "delete" an environment variable.
@svlandeg svlandeg added the feature New feature, enhancement or request label Sep 15, 2025
@svlandeg svlandeg changed the title CliRunner: Fix typing of env parameter ✨ Allow setting an environment variable to None in CliRunner.invoke Sep 15, 2025
Copy link
Member

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

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

Looks good to me, Click also takes a Mapping[str, str | None] | None for this env variable.

Thanks for the PR, @arjenzorgdoc!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature, enhancement or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants