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

ets-labs / python-dependency-injector / 9377842010

05 Jun 2024 03:41AM UTC coverage: 0.0% (-92.0%) from 92.016%
9377842010

Pull #765

github

rmk135
Remove pypy 3.9
Pull Request #765: Add Python 3.12 Support (#752)

0 of 764 relevant lines covered (0.0%)

0.0 hits per line

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

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

3
import abc
×
4
from typing import TypeVar, Generic, Optional
×
5

6

7
T = TypeVar("T")
×
8

9

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

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

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

19

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

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

26
    async def shutdown(self, resource: Optional[T]) -> None:
×
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