Skip to content

Commit f327cd1

Browse files
committed
chore(pyright): resolve sibling imports in tools/
1 parent 10eda0e commit f327cd1

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ reportUnnecessaryTypeIgnoreComment = true
197197
# environments are searched from start to finish by comparing the path
198198
# of a source file with the root path specified in the execution
199199
# environment.
200-
executionEnvironments = []
200+
executionEnvironments = [
201+
# The scripts in tools/ import their siblings directly
202+
{ root = "tools", extraPaths = ["tools"] },
203+
]
201204

202205
stubPath = ""
203206

tools/release-checklist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def verbose(prev_version, next_version):
139139
"""
140140
from textwrap import dedent
141141

142-
from term import T0 as T # type: ignore
142+
from term import T0 as T
143143

144144
s = f"""
145145
Previous Version: {T(prev_version, "lightblue", effect="strikethrough")}

0 commit comments

Comments
 (0)