Skip to content

Commit

Permalink
add no cover marks to TYPE_CHECKING
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Oct 11, 2023
1 parent 176ce2d commit 1b16357
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion google/cloud/firestore_v1/async_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/firestore_v1/base_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/firestore_v1/base_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/firestore_v1/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 1b16357

Please sign in to comment.