Skip to content

Commit

Permalink
fix: use ABC instead of ty.Protocol in examples due to #1
Browse files Browse the repository at this point in the history
CaffeineDuck committed Dec 26, 2023
1 parent 58a17f9 commit f7af29d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -15,12 +15,13 @@ Good question.
## How?

```python
import typing as ty
from abc import ABC, abstractmethod

from injkt import Bind, Config, Injectable, Injktor, inject_args_deps


class IMailService(ty.Protocol):
class IMailService(ABC):
@abstractmethod
def send_mail(self, subject: str, to: str) -> None:
...

0 comments on commit f7af29d

Please sign in to comment.