Use TypeAlias for type aliases where possible, part II (#7667)

This commit is contained in:
Alex Waygood
2022-04-20 20:02:47 +01:00
committed by GitHub
parent c653be73b8
commit b093c90a94
41 changed files with 91 additions and 90 deletions

View File

@@ -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