Big diff: use lower-case list and dict (#5888)

This commit is contained in:
Akuli
2021-08-08 19:26:35 +03:00
committed by GitHub
parent 11f54c3407
commit ce11072dbe
325 changed files with 2196 additions and 2334 deletions

View File

@@ -1,6 +1,6 @@
import sys
from types import ModuleType
from typing import Any, Container, Dict, Iterable, List, Sequence, Set, Tuple, Type
from typing import Any, Container, Iterable, Sequence, Set, Tuple, Type
from typing_extensions import Literal
if sys.platform == "win32":
@@ -25,7 +25,7 @@ if sys.platform == "win32":
class Table:
name: str
fields: List[Tuple[int, str, int]]
fields: list[Tuple[int, str, int]]
def __init__(self, name: str) -> None: ...
def add_field(self, index: int, name: str, type: int) -> None: ...
def sql(self) -> str: ...
@@ -48,7 +48,7 @@ if sys.platform == "win32":
class CAB:
name: str
files: List[Tuple[str, str]]
files: list[Tuple[str, str]]
filenames: Set[str]
index: int
def __init__(self, name: str) -> None: ...
@@ -66,7 +66,7 @@ if sys.platform == "win32":
component: str | None
short_names: Set[str]
ids: Set[str]
keyfiles: Dict[str, str]
keyfiles: dict[str, str]
componentflags: int | None
absolute: str
def __init__(
@@ -89,7 +89,7 @@ if sys.platform == "win32":
) -> None: ...
def make_short(self, file: str) -> str: ...
def add_file(self, file: str, src: str | None = ..., version: str | None = ..., language: str | None = ...) -> str: ...
def glob(self, pattern: str, exclude: Container[str] | None = ...) -> List[str]: ...
def glob(self, pattern: str, exclude: Container[str] | None = ...) -> list[str]: ...
def remove_pyc(self) -> None: ...
class Binary:

View File

@@ -1,5 +1,5 @@
import sys
from typing import List, Tuple
from typing import Tuple
if sys.platform == "win32":
from . import Table
@@ -90,6 +90,6 @@ if sys.platform == "win32":
Upgrade: Table
Verb: Table
tables: List[Table]
tables: list[Table]
_Validation_records: List[Tuple[str, str, str, int | None, int | None, str | None, int | None, str | None, str | None, str]]
_Validation_records: list[Tuple[str, str, str, int | None, int | None, str | None, int | None, str | None, str | None, str]]

View File

@@ -11,4 +11,4 @@ if sys.platform == "win32":
InstallExecuteSequence: _SequenceType
InstallUISequence: _SequenceType
tables: List[str]
tables: list[str]

View File

@@ -1,9 +1,9 @@
import sys
from typing import List, Tuple
from typing import Tuple
if sys.platform == "win32":
ActionText: List[Tuple[str, str, str | None]]
UIText: List[Tuple[str, str | None]]
ActionText: list[Tuple[str, str, str | None]]
UIText: list[Tuple[str, str | None]]
tables: List[str]
tables: list[str]