Auto-update pre-commit repositories and fix. (#3427)

The version of `flake8` was too old to support with Python 3.12 -- there
is new F-string support that caused false positives sadly. The updated
version has fixes for all of these.

This in turn updates codespell which has picked up several new fixes
that actually fire in our code, so also fix everything. While we don't
do more in-depth updates to old proposals, similar to simply fixing
broken links, fixing automatically detected typos seems scalable and
fine.

All edits were automatically generated here.
This commit is contained in:
Chandler Carruth authored and GitHub committed 2023-11-28 17:17:28 +00:00
1 parent a307e7a72a
commit 01e12111a8
9 files changed
+22 -22

No files matched your search

+1 -1
View File
@@ -196,7 +196,7 @@ auto PatternMatrix::FirstColumnDiscriminators() const -> DiscriminatorSet {
num_discrims = choice->declaration().alternatives().size();
elem_size = 1;
} else if (isa<BoolType>(type)) {
// `bool` behaves like a choice type with two alternativs,
// `bool` behaves like a choice type with two alternatives,
// and with no nested patterns for either of them.
num_discrims = 2;
elem_size = 0;