From e79a23df22deedef3cfb5a7dc1348191aafc8e6d Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Sat, 7 Oct 2023 16:44:49 +0100 Subject: [PATCH] Lower coverage req = try fix mypy --- pipelines/requirements/coverage.txt | 2 +- tests/test_generation/test_partial_types.py | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pipelines/requirements/coverage.txt b/pipelines/requirements/coverage.txt index b13cbb7c5..31897f0e8 100644 --- a/pipelines/requirements/coverage.txt +++ b/pipelines/requirements/coverage.txt @@ -1 +1 @@ -coverage==7.3.2 +coverage==7.2.7 diff --git a/tests/test_generation/test_partial_types.py b/tests/test_generation/test_partial_types.py index fb21fb87a..20b993f57 100644 --- a/tests/test_generation/test_partial_types.py +++ b/tests/test_generation/test_partial_types.py @@ -316,9 +316,9 @@ def generator() -> None: # mark: filedef User.create_partial('UserOnlyName', include={'name'}) - Post.create_partial('PostWithoutDesc', exclude=['desc']) # type: ignore + Post.create_partial('PostWithoutDesc', exclude=['desc']) # pyright: ignore Post.create_partial('PostOptionalPublished', optional=['published']) - Post.create_partial('PostRequiredDesc', required=['desc']) # type: ignore + Post.create_partial('PostRequiredDesc', required=['desc']) # pyright: ignore Post.create_partial('PostOnlyId', include={'id'}) Post.create_partial( 'PostOptionalInclude', include={'title'}, optional={'title'} @@ -336,10 +336,10 @@ def generator() -> None: # mark: filedef User.create_partial( 'UserModifiedPosts', - exclude={'bytes', 'bytes_list'}, # type: ignore + exclude={'bytes', 'bytes_list'}, # pyright: ignore relations={'posts': 'PostOnlyId'}, ) - User.create_partial('UserBytesList', include={'bytes', 'bytes_list'}) # type: ignore + User.create_partial('UserBytesList', include={'bytes', 'bytes_list'}) # pyright: ignore testdir.make_from_function(generator, name=location) testdir.generate(SCHEMA, options) @@ -381,9 +381,9 @@ def generator() -> None: # mark: filedef Post.create_partial( 'PostPartial', - required={'desc', 'published', 'title'}, # type: ignore + required={'desc', 'published', 'title'}, # pyright: ignore optional={ - 'desc', # type: ignore + 'desc', # pyright: ignore 'published', }, ) @@ -406,9 +406,9 @@ def generator() -> None: # mark: filedef Post.create_partial( 'PostPartial', - exclude={'desc'}, # type: ignore + exclude={'desc'}, # pyright: ignore required={ - 'desc', # type: ignore + 'desc', # pyright: ignore }, ) @@ -472,7 +472,7 @@ def generator() -> None: # mark: filedef for _ in range(2): Post.create_partial( 'PostPartial', - exclude={'desc'}, # type: ignore + exclude={'desc'}, # pyright: ignore ) testdir.make_from_function(generator, name='prisma/partial_types.py')