check_new_syntax.py: check nested annotations (#6167)

This commit is contained in:
Akuli
2021-10-13 21:28:38 +00:00
committed by GitHub
parent f30b5ae363
commit 75ca712f3c
6 changed files with 28 additions and 24 deletions

View File

@@ -12,6 +12,8 @@ CR: bytes
LF: bytes
CRLF: bytes
_list = list # conflicts with a method named "list"
class POP3:
encoding: str
host: str
@@ -41,7 +43,7 @@ class POP3:
@overload
def uidl(self, which: Any) -> bytes: ...
def utf8(self) -> bytes: ...
def capa(self) -> dict[str, List[str]]: ...
def capa(self) -> dict[str, _list[str]]: ...
def stls(self, context: ssl.SSLContext | None = ...) -> bytes: ...
class POP3_SSL(POP3):