From f068dab3705602043d3a21dcef6b303db9eda53d Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Sat, 3 Dec 2022 16:25:16 +0000 Subject: [PATCH] Remove unnecessary type ignore --- src/prisma/cli/_node.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/prisma/cli/_node.py b/src/prisma/cli/_node.py index 04484bfa9..df1a26cdd 100644 --- a/src/prisma/cli/_node.py +++ b/src/prisma/cli/_node.py @@ -236,14 +236,16 @@ def __run__( else: raise UnknownTargetError(target=self.target) - # TODO - return func( # type: ignore - args, - check=check, - cwd=cwd, - env=env, - stdout=stdout, - stderr=stderr, + return cast( + subprocess.CompletedProcess[bytes], + func( + args, + check=check, + cwd=cwd, + env=env, + stdout=stdout, + stderr=stderr, + ), ) @property