mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Use typing_extensions.Self in the stdlib (#9694)
This commit is contained in:
@@ -2,11 +2,11 @@ import datetime
|
||||
import socket
|
||||
import ssl
|
||||
import sys
|
||||
from _typeshed import Self, Unused
|
||||
from _typeshed import Unused
|
||||
from builtins import list as _list # conflicts with a method named "list"
|
||||
from collections.abc import Iterable
|
||||
from typing import IO, Any, NamedTuple
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
|
||||
__all__ = [
|
||||
"NNTP",
|
||||
@@ -72,7 +72,7 @@ class NNTP:
|
||||
usenetrc: bool = False,
|
||||
timeout: float = ...,
|
||||
) -> None: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(self, *args: Unused) -> None: ...
|
||||
def getwelcome(self) -> str: ...
|
||||
def getcapabilities(self) -> dict[str, _list[str]]: ...
|
||||
|
||||
Reference in New Issue
Block a user