Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 5948e22

Browse files
committed
add nocover to protocol implementations
1 parent f5f3dd2 commit 5948e22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/stapi_fastapi/backends/product_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from stapi_fastapi.routers.product_router import ProductRouter
1010

1111

12-
class ProductBackend(Protocol):
12+
class ProductBackend(Protocol): # pragma: nocover
1313
async def search_opportunities(
1414
self,
1515
product_router: ProductRouter,

src/stapi_fastapi/backends/root_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from stapi_fastapi.models.order import Order, OrderCollection
66

77

8-
class RootBackend(Protocol):
8+
class RootBackend(Protocol): # pragma: nocover
99
async def get_orders(self, request: Request) -> OrderCollection:
1010
"""
1111
Return a list of existing orders.

0 commit comments

Comments
 (0)