mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
from _typeshed import Self
|
||||
from typing import Any, Callable, Dict, Text, Tuple, TypeVar
|
||||
from typing import Any, Callable, Text, TypeVar
|
||||
|
||||
def run(statement: str, filename: str | None = ..., sort: str | int = ...) -> None: ...
|
||||
def runctx(
|
||||
statement: str, globals: Dict[str, Any], locals: Dict[str, Any], filename: str | None = ..., sort: str | int = ...
|
||||
statement: str, globals: dict[str, Any], locals: dict[str, Any], filename: str | None = ..., sort: str | int = ...
|
||||
) -> None: ...
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_Label = Tuple[str, int, str]
|
||||
_Label = tuple[str, int, str]
|
||||
|
||||
class Profile:
|
||||
bias: int
|
||||
@@ -21,6 +21,6 @@ class Profile:
|
||||
def create_stats(self) -> None: ...
|
||||
def snapshot_stats(self) -> None: ...
|
||||
def run(self: Self, cmd: str) -> Self: ...
|
||||
def runctx(self: Self, cmd: str, globals: Dict[str, Any], locals: Dict[str, Any]) -> Self: ...
|
||||
def runctx(self: Self, cmd: str, globals: dict[str, Any], locals: dict[str, Any]) -> Self: ...
|
||||
def runcall(self, __func: Callable[..., _T], *args: Any, **kw: Any) -> _T: ...
|
||||
def calibrate(self, m: int, verbose: int = ...) -> float: ...
|
||||
|
||||
Reference in New Issue
Block a user