Skip to content

Commit

Permalink
Fix attribute type to indicate it is now a list
Browse files Browse the repository at this point in the history
  • Loading branch information
patrys authored Nov 19, 2018
1 parent 64bdec7 commit 3a72966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphql/execution/middleware.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from functools import partial, reduce
from inspect import isfunction

from typing import Callable, Iterator, Dict, Tuple, Any, Optional
from typing import Callable, Iterator, Dict, List, Tuple, Any, Optional

__all__ = ["MiddlewareManager"]

Expand All @@ -23,7 +23,7 @@ class MiddlewareManager:
__slots__ = "middlewares", "_middleware_resolvers", "_cached_resolvers"

_cached_resolvers: Dict[GraphQLFieldResolver, GraphQLFieldResolver]
_middleware_resolvers: Optional[Iterator[Callable]]
_middleware_resolvers: Optional[List[Callable]]

def __init__(self, *middlewares: Any) -> None:
self.middlewares = middlewares
Expand Down

0 comments on commit 3a72966

Please sign in to comment.