• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ets-labs / python-dependency-injector / 3726562862

pending completion
3726562862

push

github-actions

Roman Mogylatov
Update publishing job

691 of 750 relevant lines covered (92.13%)

0.92 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

73.33
/src/dependency_injector/resources.py
1
"""Resources module."""
2

3
import abc
1✔
4
from typing import TypeVar, Generic, Optional
1✔
5

6

7
T = TypeVar("T")
1✔
8

9

10
class Resource(Generic[T], metaclass=abc.ABCMeta):
1✔
11

12
    @abc.abstractmethod
1✔
13
    def init(self, *args, **kwargs) -> Optional[T]:
1✔
14
        ...
×
15

16
    def shutdown(self, resource: Optional[T]) -> None:
1✔
17
        ...
×
18

19

20
class AsyncResource(Generic[T], metaclass=abc.ABCMeta):
1✔
21

22
    @abc.abstractmethod
1✔
23
    async def init(self, *args, **kwargs) -> Optional[T]:
1✔
24
        ...
×
25

26
    async def shutdown(self, resource: Optional[T]) -> None:
1✔
27
        ...
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc