Fix a couple of issues highlighted by updated mypy

This commit is contained in:
Kovid Goyal
2022-04-28 07:03:35 +05:30
parent af15b0313a
commit 1a2d9c6fba
2 changed files with 3 additions and 1 deletions

View File

@@ -36,6 +36,8 @@ def images_supported() -> bool:
class Ref:
__slots__: Tuple[str, ...] = ()
def __setattr__(self, name: str, value: object) -> None:
raise AttributeError("can't set attribute")