fix(typing): correctly type `cached` decorator

14 jobs for branch/default in 1 minute and 17 seconds (queued for 7 seconds)
Status Name Job ID Coverage
  Lint
passed black #504655
lint black

00:00:30

passed check-manifest #504658
lint check-manifest

00:00:26

passed flake8 #504656
lint flake8

00:00:30

failed mypy #504657
lint mypy allowed to fail

00:00:52

 
  Tests
passed py3 #504659
tests py3

00:00:44

passed py38 #504660
tests py3

00:00:58

 
  After Tests
passed trigger-cubicweb-pipeline

passed trigger-logilab-constraint-pipeline

passed trigger-logilab-database-pipeline

passed trigger-logilab-mtconverter-pipeline

passed trigger-readthedocs #504667

00:00:16

passed trigger-rql-pipeline

passed trigger-yams-pipeline

 
  Build Debian Package
manual build-debian #504668
debian manual
 
Name Stage Failure
failed
mypy Lint
logilab/common/testlib.py:369: error: Argument 1 to "join" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
logilab/common/testlib.py:369: error: Value of type variable "AnyStr" of "abspath" cannot be "Optional[str]"
logilab/common/registry.py:560: error: Argument 3 to "getattr" has incompatible type "int"; expected "str"
Found 10 errors in 5 files (checked 41 source files)
ERROR: InvocationError for command /builds/open-source/logilab-common/.tox/mypy/bin/mypy --ignore-missing-imports logilab (exited with code 1)
___________________________________ summary ____________________________________
ERROR: mypy: commands failed
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1