mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 14:55:50 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
1 parent
e6cb341d94
commit
8d5d2520ac
237 files changed
+966
-1069
No files matched your search
+2
-2
@@ -3,7 +3,7 @@ import socket
|
||||
import ssl
|
||||
import sys
|
||||
from _typeshed import Self
|
||||
from typing import IO, Any, Iterable, NamedTuple, Tuple, Union
|
||||
from typing import IO, Any, Iterable, NamedTuple, Union
|
||||
|
||||
_File = Union[IO[bytes], bytes, str, None]
|
||||
|
||||
@@ -72,7 +72,7 @@ class _NNTPBase:
|
||||
def xhdr(self, hdr: str, str: Any, *, file: _File = ...) -> tuple[str, _list[str]]: ...
|
||||
def xover(self, start: int, end: int, *, file: _File = ...) -> tuple[str, _list[tuple[int, dict[str, str]]]]: ...
|
||||
def over(
|
||||
self, message_spec: None | str | _list[Any] | Tuple[Any, ...], *, file: _File = ...
|
||||
self, message_spec: None | str | _list[Any] | tuple[Any, ...], *, file: _File = ...
|
||||
) -> tuple[str, _list[tuple[int, dict[str, str]]]]: ...
|
||||
if sys.version_info < (3, 9):
|
||||
def xgtitle(self, group: str, *, file: _File = ...) -> tuple[str, _list[tuple[str, str]]]: ...
|
||||
|
||||
Reference in new issue
Block a user