On 29/10/2025 01.25, Colin Watson wrote:
On Fri, Sep 05, 2025 at 06:15:45PM +0000, Santiago Vila wrote:

There are two possible approaches to fixing this: we could cherry-pick 
https://github.com/psf/black/pull/4671 and 
https://github.com/psf/black/pull/4745/commits/c696b9d80c3bbbf7849515f082e1542f58add52a,
 or we could upgrade to black 25.9.0 now that python3-pytokens has made it 
through NEW.  I prefer the latter option on general principles.

However, in either case, I found that I needed to temporarily disable building 
black with mypyc (by commenting out `export HATCH_BUILD_HOOKS_ENABLE=1` in 
debian/rules), because both the patched 25.1.0 and black 25.9.0 have many test 
failures with mypy 1.18.2 in testing/unstable, to the extent that I suspect the 
resulting package would be broken.

I see somebody seems to have started working on upgrading to a new mypy 
upstream (https://github.com/psf/black/pull/4749), but the commits so far don't 
seem relevant to this.  I haven't exhaustively checked the upstream main 
branch, but I don't immediately see anything relevant there either.

Michael, do you think it would be acceptable to disable building with mypyc for 
now, or do you have any better ideas?  Let me know if you need me to push my 
work in progress somewhere.

I think a newer version of black (and fixing this bug) is more important than 
black being compiled with mypyc, so a temporary commenting out of 
HATCH_BUILD_HOOKS_ENABLE is fine by me.

Thank you!

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to