Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python function annotation is not working #246

Open
doantranthanh opened this issue Nov 30, 2021 · 0 comments
Open

Python function annotation is not working #246

doantranthanh opened this issue Nov 30, 2021 · 0 comments

Comments

@doantranthanh
Copy link

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:
    image

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant