[Python] Python VsCode: Green highlight on class not working

Discussão em 'Python' iniciado por Stack, Dezembro 6, 2024.

  1. Stack

    Stack Membro Participativo

    I have the following python code:

    from typing import List


    class User:
    id: str
    name: str

    def __init__(self, id: str, name: str):
    self.id
    self.name = name


    UserList = List[User]


    User is highlighted in green but not UserList.

    Here is a screen shot on VsCode: [​IMG]

    It causes incoherent highlights such as: [​IMG]

    Is there a way to have UserList highlighted in green by VsCode ?

    VsCode Version: 1.65.2 with python and Pylance extension installed

    Continue reading...

Compartilhe esta Página