Skip to content

Commit b613011

Browse files
Enable reportAssignmentType in pyright (#310)
1 parent 368641f commit b613011

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pins/boards.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from typing import Mapping, Protocol, Sequence
1313

1414
from importlib_resources import files
15+
from importlib_resources.abc import Traversable
1516

1617
from .cache import PinsCache
1718
from .config import get_allow_rsc_short_name
@@ -994,8 +995,8 @@ class BoardRsConnect(BaseBoard):
994995
# TODO: note that board is unused in this class (e.g. it's not in construct_path())
995996

996997
# TODO: should read template dynamically, not at class def'n time
997-
html_assets_dir: Path = files("pins") / "rsconnect/html"
998-
html_template: Path = files("pins") / "rsconnect/html/index.html"
998+
html_assets_dir: Traversable = files("pins") / "rsconnect/html"
999+
html_template: Traversable = files("pins") / "rsconnect/html/index.html"
9991000

10001001
# defaults work ----
10011002

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ pythonPlatform = "Linux"
100100

101101
# Tracking compliance with these rules at https://github.com/rstudio/pins-python/issues/272
102102
reportArgumentType = false
103-
reportAssignmentType = false
104103
reportAttributeAccessIssue = false
105104
reportCallIssue = false
106105
reportIncompatibleMethodOverride = false

0 commit comments

Comments
 (0)