Skip to content

Commit 2011a29

Browse files
authored
Merge pull request #6276 from microsoft/dependabot/npm_and_yarn/dot-github/pyright-1.1.373
Bump pyright from 1.1.371 to 1.1.373 in /.github
2 parents 16d1f7a + 89ee699 commit 2011a29

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"devDependencies": {
3-
"pyright": "1.1.371"
3+
"pyright": "1.1.373"
44
}
55
}

tests/test_command.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,21 @@ def myexp(a: float, b: float) -> float:
112112
return a**b
113113

114114
# input parsing
115+
# since the Command class is not generic
116+
# in the input type this does not understand
117+
# that this command should only be called with
118+
# float/int. We ignore this below
115119
cmd: Command[float, float] = Command(
116-
1, abs, input_parser=lambda x: x + 1
117-
) # pyright: ignore
120+
1,
121+
abs, # pyright: ignore
122+
input_parser=lambda x: x + 1,
123+
)
118124
assert cmd(-10) == 9
119125

120126
# input *and* output parsing
121127
cmd = Command(
122128
1,
123-
abs,
129+
abs, # pyright: ignore
124130
input_parser=lambda x: x + 2,
125131
output_parser=lambda y: 3 * y, # pyright: ignore
126132
)

0 commit comments

Comments
 (0)