From cb57d39c4c8e620a222e1d7da66714e606d5cf45 Mon Sep 17 00:00:00 2001 From: Antoine Lambert <anlambert@softwareheritage.org> Date: Fri, 17 Feb 2023 14:42:56 +0100 Subject: [PATCH] mypy: Bump to 1.0 and fix new typing errors Related to swh/meta#4960 --- swh/fuse/fuse.py | 4 +--- tox.ini | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/swh/fuse/fuse.py b/swh/fuse/fuse.py index 207bd7e..e9fc161 100644 --- a/swh/fuse/fuse.py +++ b/swh/fuse/fuse.py @@ -35,9 +35,7 @@ class Fuse(pyfuse3.Operations): self._next_inode: int = pyfuse3.ROOT_INODE self._inode2entry: Dict[int, FuseEntry] = {} - # The fuse constructor keyword is propagated up to FuseEntry dataclass, but mypy - # 0.812 considers it an unexpected kwarg. Skip typing it. - self.root = Root(fuse=self) # type: ignore + self.root = Root(fuse=self) self.conf = conf self.logger = logging.getLogger(LOGGER_NAME) diff --git a/tox.ini b/tox.ini index d91a006..ffd8eec 100644 --- a/tox.ini +++ b/tox.ini @@ -33,7 +33,7 @@ commands = extras = testing deps = - mypy==0.942 + mypy==1.0 commands = mypy swh -- GitLab