Skip to content

Commit

Permalink
Reverts use of Unpack, pytype crashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daverball committed Nov 21, 2023
1 parent 85dc299 commit e432923
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stubs/fanstatic/fanstatic/injector.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
from abc import abstractmethod
from collections.abc import Iterable
from typing import Any
from typing_extensions import Literal, TypedDict, Unpack
from typing_extensions import Literal, TypedDict

from fanstatic.core import Dependable, NeededResources, Resource
from fanstatic.inclusion import Inclusion
Expand Down Expand Up @@ -35,8 +35,8 @@ class Injector:
config: _NeededResourcesConfig
injector: InjectorPlugin
def __init__(
self, app: WSGIApplication, injector: InjectorPlugin | None = None, **config: Unpack[_NeededResourcesConfig]
) -> None: ...
self, app: WSGIApplication, injector: InjectorPlugin | None = None, **config: Any
) -> None: ... # FIXME: Switch to Unpack[_NeededResourcesConfig]
def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...

class InjectorPlugin:
Expand Down

0 comments on commit e432923

Please sign in to comment.