Skip to content

Commit

Permalink
fix(celery): canvas eta param to be nullable (#33)
Browse files Browse the repository at this point in the history
Originally optional, at runtime it's just `kwargs`, so we're kind of
flying blind when typing it

related: #32
  • Loading branch information
sbdchd authored Oct 19, 2021
1 parent 737a5ba commit d659082
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions typings/celery/canvas.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Signature(Dict[str, Any]):
shadow: Optional[str] = ...,
# apply_async options
countdown: float = ...,
eta: datetime = ...,
eta: datetime | None = ...,
expires: Union[float, datetime] = ...,
retry: bool = ...,
retry_policy: Mapping[str, Any] = ...,
Expand Down Expand Up @@ -77,7 +77,7 @@ class Signature(Dict[str, Any]):
shadow: Optional[str] = ...,
# apply_async options
countdown: float = ...,
eta: datetime = ...,
eta: datetime | None = ...,
expires: Union[float, datetime] = ...,
retry: bool = ...,
retry_policy: Mapping[str, Any] = ...,
Expand All @@ -103,7 +103,7 @@ class Signature(Dict[str, Any]):
shadow: Optional[str] = ...,
# apply_async options
countdown: float = ...,
eta: datetime = ...,
eta: datetime | None = ...,
expires: Union[float, datetime] = ...,
retry: bool = ...,
retry_policy: Mapping[str, Any] = ...,
Expand Down Expand Up @@ -143,7 +143,7 @@ class Signature(Dict[str, Any]):
shadow: Optional[str] = ...,
# apply_async options
countdown: float = ...,
eta: datetime = ...,
eta: datetime | None = ...,
expires: Union[float, datetime] = ...,
retry: bool = ...,
retry_policy: Mapping[str, Any] = ...,
Expand Down Expand Up @@ -201,7 +201,7 @@ class _chain(Signature):
link_error: Optional[Signature] = ...,
shadow: Optional[str] = ...,
countdown: float = ...,
eta: datetime = ...,
eta: datetime | None = ...,
expires: Union[float, datetime] = ...,
retry: bool = ...,
retry_policy: Mapping[str, Any] = ...,
Expand Down Expand Up @@ -237,7 +237,7 @@ class _basemap(Signature):
link_error: Optional[Signature] = ...,
shadow: Optional[str] = ...,
countdown: float = ...,
eta: datetime = ...,
eta: datetime | None = ...,
expires: Union[float, datetime] = ...,
retry: bool = ...,
retry_policy: Mapping[str, Any] = ...,
Expand Down Expand Up @@ -275,7 +275,7 @@ class chunks(Signature):
link_error: Optional[Signature] = ...,
shadow: Optional[str] = ...,
countdown: float = ...,
eta: datetime = ...,
eta: datetime | None = ...,
expires: Union[float, datetime] = ...,
retry: bool = ...,
retry_policy: Mapping[str, Any] = ...,
Expand Down Expand Up @@ -309,7 +309,7 @@ class group(Signature):
link_error: Optional[Signature] = ...,
shadow: Optional[str] = ...,
countdown: float = ...,
eta: datetime = ...,
eta: datetime | None = ...,
expires: Union[float, datetime] = ...,
retry: bool = ...,
retry_policy: Mapping[str, Any] = ...,
Expand Down Expand Up @@ -350,7 +350,7 @@ class chord(Signature):
link_error: Optional[Signature] = ...,
shadow: Optional[str] = ...,
countdown: float = ...,
eta: datetime = ...,
eta: datetime | None = ...,
expires: Union[float, datetime] = ...,
retry: bool = ...,
retry_policy: Mapping[str, Any] = ...,
Expand Down

0 comments on commit d659082

Please sign in to comment.