From b6130113dd28457bc89e01a207cb0ca3c9a0f7bf Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Sat, 14 Dec 2024 11:11:57 +1300 Subject: [PATCH] Enable reportAssignmentType in pyright (#310) --- pins/boards.py | 5 +++-- pyproject.toml | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pins/boards.py b/pins/boards.py index fb72635..10af506 100644 --- a/pins/boards.py +++ b/pins/boards.py @@ -12,6 +12,7 @@ from typing import Mapping, Protocol, Sequence from importlib_resources import files +from importlib_resources.abc import Traversable from .cache import PinsCache from .config import get_allow_rsc_short_name @@ -994,8 +995,8 @@ class BoardRsConnect(BaseBoard): # TODO: note that board is unused in this class (e.g. it's not in construct_path()) # TODO: should read template dynamically, not at class def'n time - html_assets_dir: Path = files("pins") / "rsconnect/html" - html_template: Path = files("pins") / "rsconnect/html/index.html" + html_assets_dir: Traversable = files("pins") / "rsconnect/html" + html_template: Traversable = files("pins") / "rsconnect/html/index.html" # defaults work ---- diff --git a/pyproject.toml b/pyproject.toml index cd7f462..6d6f947 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -100,7 +100,6 @@ pythonPlatform = "Linux" # Tracking compliance with these rules at https://github.com/rstudio/pins-python/issues/272 reportArgumentType = false -reportAssignmentType = false reportAttributeAccessIssue = false reportCallIssue = false reportIncompatibleMethodOverride = false