Skip to content

[BUG] return type hinting in python  #18

@WooheonHong

Description

@WooheonHong

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions