From 70b651a39310f0500f4ed2ca0273ebc4f4c3afe5 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Wed, 17 Apr 2024 09:06:45 -0400 Subject: [PATCH] fix(pyright) closes #5895 --- projects/microsoft.com/pyright/package.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/microsoft.com/pyright/package.yml b/projects/microsoft.com/pyright/package.yml index 8ab931ca..39b87db8 100644 --- a/projects/microsoft.com/pyright/package.yml +++ b/projects/microsoft.com/pyright/package.yml @@ -11,8 +11,7 @@ dependencies: build: dependencies: npmjs.com: '*' - script: - npm i $ARGS . + script: npm i $ARGS . env: ARGS: - -ddd @@ -32,7 +31,7 @@ test: def wrong_types(a: int, b: int) -> str: return a + b extname: py - - cat out.log | grep 'Expression of type "int" cannot be assigned to return type "str"' + - cat out.log | grep -E 'Expression of type "int" (cannot be assigned to|is incompatible with) return type "str"' - run: pyright $FIXTURE 2>&1 | grep '0 errors, 0 warnings, 0 informations' fixture: content: |