Improve a bunch of __(deep)copy__ methods (#7148)

This commit is contained in:
Alex Waygood
2022-02-06 23:40:44 +00:00
committed by GitHub
parent a62fd92fb0
commit 494481a0ae
6 changed files with 13 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
from _typeshed import Self
from typing import Any
from .config import Config
@@ -61,7 +62,7 @@ class Call:
self, task: Task, called_as: str | None = ..., args: tuple[Any, ...] | None = ..., kwargs: dict[str, Any] | None = ...
) -> None: ...
def __getattr__(self, name: str) -> Any: ...
def __deepcopy__(self, memo: Any) -> Task: ...
def __deepcopy__(self: Self, memo: Any) -> Self: ...
def __eq__(self, other: Call) -> bool: ... # type: ignore[override]
def make_context(self, config: Config) -> Context: ...
def clone_data(self): ...