mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 10:52:31 +08:00
Add missing defaults to third-party stubs (#14617)
This commit is contained in:
@@ -188,7 +188,7 @@ class NeededResources:
|
||||
recompute_hashes: bool = True,
|
||||
base_url: str | None = None,
|
||||
script_name: str | None = None,
|
||||
publisher_signature: str = ...,
|
||||
publisher_signature: str = "fanstatic",
|
||||
resources: Iterable[Dependable] | None = None,
|
||||
) -> None: ...
|
||||
def has_resources(self) -> bool: ...
|
||||
|
||||
@@ -41,7 +41,7 @@ class Delegator:
|
||||
publisher: Publisher
|
||||
publisher_signature: str
|
||||
trigger: str
|
||||
def __init__(self, app: WSGIApplication, publisher: Publisher, publisher_signature: str = ...) -> None: ...
|
||||
def __init__(self, app: WSGIApplication, publisher: Publisher, publisher_signature: str = "fanstatic") -> None: ...
|
||||
def is_resource(self, request: Request) -> bool: ...
|
||||
def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ from webob import Request, Response
|
||||
from webob.dec import wsgify
|
||||
|
||||
def Fanstatic(
|
||||
app: WSGIApplication, publisher_signature: str = ..., injector: InjectorPlugin | None = None, **config: Any
|
||||
app: WSGIApplication, publisher_signature: str = "fanstatic", injector: InjectorPlugin | None = None, **config: Any
|
||||
) -> Delegator: ...
|
||||
def make_fanstatic(app: WSGIApplication, global_config: Any, **local_config: Any) -> Delegator: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user