# Fix Python builtin type highlighting \(\#29475\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/bf9e5b4f761b507310d744553e29ba6fdeb3c89a)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: bf9e5b4f761b507310d744553e29ba6fdeb3c89a

Requested commit: bf9e5b4f761b507310d744553e29ba6fdeb3c89a

Commit: bf9e5b4f761b507310d744553e29ba6fdeb3c89a

Tree: 85b51da1fe2cc617b77a7979b85979e469f48621

Author: chbk

Committer: GitHub

## Message

````
Fix Python builtin type highlighting (#29475)


| Zed 0.183.11 | With this PR |
| --- | --- |
|
![0.183.11](https://github.com/user-attachments/assets/6bb16c9b-2d6a-4424-a2ea-9ff051eb3085)
|
![pr](https://github.com/user-attachments/assets/d39d12d1-e6c3-4c06-8829-c5ee508ae83a)
|

```python
class A:
  @classmethod
  def list(cls, list: list) -> list:
    return list

A.list(list())
A.list(list=list())
A.list(list=list(A.list(list())))

list: list = list()
A.list(list)
A.list(list=list)
A.list(list=A.list(list))
```

Release Notes:

  - Improved Python builtin type highlighting

````

## Parents

- [cfb8cae29ca18c2c136bce43af01e019a89169a2](https://git.cafe/gitcafe/zed/commit/cfb8cae29ca18c2c136bce43af01e019a89169a2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/bf9e5b4f761b507310d744553e29ba6fdeb3c89a?format=markdown)
