summaryrefslogtreecommitdiff
path: root/tests/functional/n/non_ascii_name/non_ascii_name_function_argument_py38.py
blob: a75e1c6b78ae0ad8868e95bdd4fe51161d31dc3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""
non ascii variable defined in a function

This test is only for 3.8 as the starting column is incorrect
"""


def okay(
    just_some_thing_long_again: str,
    lol_very_long_argument: str,
    łol: str,  # [non-ascii-name]
) -> bool:
    """Be okay, yeah?"""
    # Usage should not raise a second error
    print(just_some_thing_long_again, lol_very_long_argument, łol)
    return True


# Usage should raise a second error
okay(
    "A          VVVVVVVEEEERRRRRRRRRRYYYYYYYYYY    LONG TIME               ",
    lol_very_long_argument="a",
    łol="b",  # [non-ascii-name]
)