Skip to content

Commit

Permalink
Fix typos in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Eclips4 committed Oct 22, 2024
1 parent 0f89a7c commit 75320d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ To provide connection we might need to write some custom code:
from dishka import Provider, provide, Scope

class ConnectionProvider(Provider):
@provide(Scope=Scope.REQUEST)
def new_connection(self) -> Connection:
@provide(scope=Scope.REQUEST)
def new_connection(self) -> Iterable[Connection]:
conn = sqlite3.connect()
yield conn
conn.close()
Expand Down

0 comments on commit 75320d0

Please sign in to comment.