diff options
Diffstat (limited to 'tests/functional/n/non_ascii_name/non_ascii_name_function_argument_py38.py')
-rw-r--r-- | tests/functional/n/non_ascii_name/non_ascii_name_function_argument_py38.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/functional/n/non_ascii_name/non_ascii_name_function_argument_py38.py b/tests/functional/n/non_ascii_name/non_ascii_name_function_argument_py38.py new file mode 100644 index 000000000..a75e1c6b7 --- /dev/null +++ b/tests/functional/n/non_ascii_name/non_ascii_name_function_argument_py38.py @@ -0,0 +1,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] +) |