mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 10:52:31 +08:00
Enable Ruff PLC (Pylint Convention) (#13306)
This commit is contained in:
@@ -15,10 +15,10 @@ def difference(G: Graph[_Node], H: Graph[_Node]): ...
|
||||
@_dispatchable
|
||||
def symmetric_difference(G: Graph[_Node], H: Graph[_Node]): ...
|
||||
|
||||
_X = TypeVar("_X", bound=Hashable, covariant=True)
|
||||
_Y = TypeVar("_Y", bound=Hashable, covariant=True)
|
||||
_X_co = TypeVar("_X_co", bound=Hashable, covariant=True)
|
||||
_Y_co = TypeVar("_Y_co", bound=Hashable, covariant=True)
|
||||
|
||||
@_dispatchable
|
||||
def compose(G: Graph[_X], H: Graph[_Y]) -> DiGraph[_X | _Y]: ...
|
||||
def compose(G: Graph[_X_co], H: Graph[_Y_co]) -> DiGraph[_X_co | _Y_co]: ...
|
||||
@_dispatchable
|
||||
def union(G: Graph[_X], H: Graph[_Y], rename: Iterable[Incomplete] | None = ()) -> DiGraph[_X | _Y]: ...
|
||||
def union(G: Graph[_X_co], H: Graph[_Y_co], rename: Iterable[Incomplete] | None = ()) -> DiGraph[_X_co | _Y_co]: ...
|
||||
|
||||
Reference in New Issue
Block a user