← Winnitude! Search  ·  Reader Mode (1055 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 6 LINKS

Python function annotation is not working · Issue #246 · MagicStack/MagicPython

Repository navigation

Python function annotation is not working  #246


New issue

New issue

Open

Open
Python function annotation is not working #246

Description

@doantranthanh's profile doantranthanh opened on Nov 30, 2021

Hi there,

My VSCode does not work well on highlight syntax with python function annotation. Details are following:

  • Editor name and version : VSCode version 1.62.3

  • Platform : Windows 10

  • Color scheme : Any (primary using Tokyo Night theme)

  • MagicPython version : latest

  • A sreenshot :

  • 5-10 lines of surrounding code :

def gcd(a: int, b: int) -> int:
    if a == b:
        return a
    else:
        if a > b:
            return gcd(a-b, b)
        else:
            return gcd(a, b-a)

def gcd2(a: int, b: int):
    if b == 0:
        return a
    else:
        return gcd2(b, a % b)

Any ideas?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions