Subject: bug#78838: closed (Re: bug#78838: [PATCH] 31.0.50; python-ts-mode fontifies constructors as functions, not types)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 21 Jun 2025 08:20:02 +0000

Your bug report

#78838: [PATCH] 31.0.50; python-ts-mode fontifies constructors as functions, not types

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
78838: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78838
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#78838: [PATCH] 31.0.50; python-ts-mode fontifies constructors as functions, not types
From: Eli Zaretskii <[email-masked]>
To: Jostein Kjønigsen <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Sat, 21 Jun 2025 11:18:51 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> Cc: Yuan Fu <[email-masked]>
> From: Jostein Kjønigsen <[email-masked]>
> Date: Thu, 19 Jun 2025 15:47:50 +0200
> 
> When using python-ts-mode to write or read code, I've noticed it has a few inconsistencies:
> 
> 1. type-constructors are fontified as regular functions, not the type they represent.
> 2. typed default parameters are not fontified as variables
> 3. kwarg arguments are not fontified either
> 
> Attached is a patch which fixes this :)

Thanks, installed on the master branch, and closing the bug.

Subject: [PATCH] 31.0.50; python-ts-mode fontifies constructors as functions, not types
From: Jostein Kjønigsen <[email-masked]>
To: [email-masked]
Cc: Yuan Fu <[email-masked]>
Date: Thu, 19 Jun 2025 15:47:50 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hey everyone.

When using python-ts-mode to write or read code, I've noticed it has a few inconsistencies:

1. type-constructors are fontified as regular functions, not the type they represent.
2. typed default parameters are not fontified as variables
3. kwarg arguments are not fontified either

Attached is a patch which fixes this :)

￼
—
Kind Regards
Jostein Kjønigsen