Skip to content

Commit

Permalink
add annotations for provides multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishka17 committed Nov 5, 2024
1 parent cf8a48c commit 140eac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dishka/entities/provides_marker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import sys
import threading
from typing import TYPE_CHECKING, Generic, TypeVar
from typing import Any, TYPE_CHECKING, Generic, TypeVar

__all__ = ["AnyOf", "ProvideMultiple"]

Expand All @@ -18,7 +18,7 @@ class ProvideMultiple(Generic[Unpack[Variants]]):
provides_lock = threading.Lock()

class ProvideMultiple(Generic[Variants]):
def __class_getitem__(cls, item):
def __class_getitem__(cls, item: tuple[Any]):
with provides_lock:
cls.__parameters__ = [Variants]*len(item)
return super().__class_getitem__(item)
Expand Down

0 comments on commit 140eac7

Please sign in to comment.