From 1b16357094e0d6b3a7347bbde04e7a7c157ae86c Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 10 Oct 2023 17:09:37 -0700 Subject: [PATCH] add no cover marks to TYPE_CHECKING --- google/cloud/firestore_v1/async_query.py | 2 +- google/cloud/firestore_v1/base_collection.py | 4 ++-- google/cloud/firestore_v1/base_query.py | 2 +- google/cloud/firestore_v1/query.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/google/cloud/firestore_v1/async_query.py b/google/cloud/firestore_v1/async_query.py index 4a7c4e8a31..5ddb1ee743 100644 --- a/google/cloud/firestore_v1/async_query.py +++ b/google/cloud/firestore_v1/async_query.py @@ -38,7 +38,7 @@ from google.cloud.firestore_v1.base_document import DocumentSnapshot from typing import AsyncGenerator, List, Optional, Type, TYPE_CHECKING -if TYPE_CHECKING: +if TYPE_CHECKING: # pragma: no cover # Types needed only for Type Hints from google.cloud.firestore_v1.transaction import Transaction from google.cloud.firestore_v1.field_path import FieldPath diff --git a/google/cloud/firestore_v1/base_collection.py b/google/cloud/firestore_v1/base_collection.py index c417cf15e8..12e3c01e66 100644 --- a/google/cloud/firestore_v1/base_collection.py +++ b/google/cloud/firestore_v1/base_collection.py @@ -38,8 +38,8 @@ TYPE_CHECKING, ) -# Types needed only for Type Hints -if TYPE_CHECKING: +if TYPE_CHECKING: # pragma: no cover + # Types needed only for Type Hints from google.cloud.firestore_v1.base_document import DocumentSnapshot from google.cloud.firestore_v1.base_query import BaseQuery from google.cloud.firestore_v1.transaction import Transaction diff --git a/google/cloud/firestore_v1/base_query.py b/google/cloud/firestore_v1/base_query.py index 88b3d6b0f1..8deb785567 100644 --- a/google/cloud/firestore_v1/base_query.py +++ b/google/cloud/firestore_v1/base_query.py @@ -54,7 +54,7 @@ # Types needed only for Type Hints from google.cloud.firestore_v1.base_document import DocumentSnapshot -if TYPE_CHECKING: +if TYPE_CHECKING: # pragma: no cover from google.cloud.firestore_v1.field_path import FieldPath _BAD_DIR_STRING: str diff --git a/google/cloud/firestore_v1/query.py b/google/cloud/firestore_v1/query.py index 50167e1c81..f4f38d7348 100644 --- a/google/cloud/firestore_v1/query.py +++ b/google/cloud/firestore_v1/query.py @@ -40,7 +40,7 @@ from google.cloud.firestore_v1.watch import Watch from typing import Any, Callable, Generator, List, Optional, Type, TYPE_CHECKING -if TYPE_CHECKING: +if TYPE_CHECKING: # pragma: no cover from google.cloud.firestore_v1.field_path import FieldPath