mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Use TypeAlias for type aliases where possible, part II (#7667)
This commit is contained in:
@@ -3,6 +3,7 @@ import socket
|
||||
import ssl
|
||||
import sys
|
||||
from _typeshed import Self
|
||||
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
|
||||
@@ -46,8 +47,6 @@ class ArticleInfo(NamedTuple):
|
||||
|
||||
def decode_header(header_str: str) -> str: ...
|
||||
|
||||
_list = list # conflicts with a method named "list"
|
||||
|
||||
class NNTP:
|
||||
encoding: str
|
||||
errors: str
|
||||
|
||||
Reference in New Issue
Block a user