From 33731b1ef8ad2a5a477e87a643da22dcc439a3dd Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Wed, 21 Aug 2024 16:52:30 +1200 Subject: [PATCH] Enable reportUnusedExpression in pyright --- pins/constructors.py | 5 +++-- pyproject.toml | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pins/constructors.py b/pins/constructors.py index 5db48450..c0d7224d 100644 --- a/pins/constructors.py +++ b/pins/constructors.py @@ -8,8 +8,9 @@ from .cache import PinsAccessTimeCache, PinsCache, PinsRscCacheMapper, prefix_cache from .config import get_cache_dir, get_data_dir -# Kept here for backward-compatibility reasons. -board_deparse # Note that this is not a constructor, but a function to represent them. +# Kept here for backward-compatibility reasons +# Note that this is not a constructor, but a function to represent them. +board_deparse # pyright: ignore[reportUnusedExpression] class DEFAULT: diff --git a/pyproject.toml b/pyproject.toml index 602530b5..5622b9e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,7 +112,6 @@ reportOptionalMemberAccess = false reportOptionalSubscript = false reportPossiblyUnboundVariable = false reportReturnType = false -reportUnusedExpression = false [tool.ruff] line-length = 90