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

[BUG] return type hinting in python #18

Open
WooheonHong opened this issue Jun 24, 2021 · 0 comments
Open

[BUG] return type hinting in python #18

WooheonHong opened this issue Jun 24, 2021 · 0 comments
Labels

Comments

@WooheonHong
Copy link

WooheonHong commented Jun 24, 2021

If I add a return type hinting, All codes under the function declaration are changed to the same color(#9CDCFE) except for the function name.

I found that this happens no matter what character you put in front of the function declaration letter ":".

def fun(x : int) -> x : int:
# all code #9CDCFE
    x += 1 
    return x 

# all code #9CDCFE
def fun2(): 
    pass
def fun(x : int):
# It is okay
    x += 1 
    return x 

def fun2():
    pass
@dunstontc dunstontc added the bug label Feb 5, 2022
@tcd tcd added bug and removed bug labels Feb 5, 2022
@tcd tcd changed the title bug : return type hinting in python [BUG] return type hinting in python Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants