Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

unused_typing_imports.py 413B

1234567891011121314151617
  1. # pylint: disable=missing-docstring, bad-whitespace
  2. """Regression test for https://github.com/PyCQA/pylint/issues/1168
  3. The problem was that we weren't handling keyword-only arguments annotations,
  4. which means we were never processing them.
  5. """
  6. from typing import Optional, Callable, Iterable
  7. def func1(arg: Optional[Callable]=None):
  8. return arg
  9. def func2(*, arg: Optional[Iterable]=None):
  10. return arg