mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from array import array
|
||||
from collections import deque
|
||||
from typing import Any, Callable, Tuple
|
||||
from typing import Any, Callable
|
||||
|
||||
_ReprFunc = Callable[[Any], str]
|
||||
|
||||
@@ -21,7 +21,7 @@ class Repr:
|
||||
def __init__(self) -> None: ...
|
||||
def repr(self, x: Any) -> str: ...
|
||||
def repr1(self, x: Any, level: int) -> str: ...
|
||||
def repr_tuple(self, x: Tuple[Any, ...], level: int) -> str: ...
|
||||
def repr_tuple(self, x: tuple[Any, ...], level: int) -> str: ...
|
||||
def repr_list(self, x: list[Any], level: int) -> str: ...
|
||||
def repr_array(self, x: array[Any], level: int) -> str: ...
|
||||
def repr_set(self, x: set[Any], level: int) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user