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

ets-labs / python-dependency-injector / 3728083530

pending completion
3728083530

push

github-actions

Roman Mogylatov
Merge branch 'release/4.41.0' into master

15 of 15 new or added lines in 2 files covered. (100.0%)

703 of 764 relevant lines covered (92.02%)

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