Skip to content

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented May 17, 2024

The bool | Literal[0, 1] = 1 pattern was already present, I expanded it to be used everywhere in distutils (and by extension, setuptools._distutils so that boolean parameters with a default value of 0 or 1 could be marked as bool and have their default value.

Default values also allowed finding an impossible optional param in setuptools._distutils.filelist.FileList.exclude_pattern overload.

This comment has been minimized.

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit c99adf4 into python:main May 17, 2024
@Avasam Avasam deleted the distutils-int-default-booleans branch May 17, 2024 06:33
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