diff --git a/.github/workflows/diff_shades.yml b/.github/workflows/diff_shades.yml index 51a448a12a5..552c3b7c9c5 100644 --- a/.github/workflows/diff_shades.yml +++ b/.github/workflows/diff_shades.yml @@ -44,7 +44,7 @@ jobs: HATCH_BUILD_HOOKS_ENABLE: "1" # Clang is less picky with the C code it's given than gcc (and may # generate faster binaries too). - CC: clang-14 + CC: clang-18 strategy: fail-fast: false matrix: diff --git a/.github/workflows/pypi_upload.yml b/.github/workflows/pypi_upload.yml index 710f60aac43..ea13767eeeb 100644 --- a/.github/workflows/pypi_upload.yml +++ b/.github/workflows/pypi_upload.yml @@ -50,8 +50,8 @@ jobs: # Keep cibuildwheel version in sync with below - name: Install cibuildwheel and pypyp run: | - pipx install cibuildwheel==2.21.2 - pipx install pypyp==1 + pipx install cibuildwheel==2.22.0 + pipx install pypyp==1.3.0 - name: generate matrix if: github.event_name != 'pull_request' run: | diff --git a/src/black/trans.py b/src/black/trans.py index 9cc00e74636..b885bc65ace 100644 --- a/src/black/trans.py +++ b/src/black/trans.py @@ -660,10 +660,10 @@ def make_naked(string: str, string_prefix: str) -> str: """ assert_is_leaf_string(string) if "f" in string_prefix: - f_expressions = ( + f_expressions = [ string[span[0] + 1 : span[1] - 1] # +-1 to get rid of curly braces for span in iter_fexpr_spans(string) - ) + ] debug_expressions_contain_visible_quotes = any( re.search(r".*[\'\"].*(?