summaryrefslogtreecommitdiff
path: root/tests/functional/u/unused/unused_import_positional_only_py38.py
blob: 693a377d9b34bea0b813ee5a913dad13e2b8d28b (plain)
1
2
3
4
5
6
7
8
9
10
"""Test that positional only argument annotations are properly marked as consumed

https://github.com/PyCQA/pylint/issues/3462
"""
from typing import AnyStr, Set


def func(arg: AnyStr, /, arg2: Set[str]):
    """Uses positional only arguments"""
    return arg, arg2