Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -25,14 +25,14 @@ 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: ...
def create(self, db: _Database) -> None: ...
class _Unspecified: ...
def change_sequence(
seq: Sequence[Tuple[str, str | None, int]],
seq: Sequence[tuple[str, str | None, int]],
action: str,
seqno: int | Type[_Unspecified] = ...,
cond: str | Type[_Unspecified] = ...,
@@ -48,12 +48,12 @@ 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: ...
def gen_id(self, file: str) -> str: ...
def append(self, full: str, file: str, logical: str) -> Tuple[int, str]: ...
def append(self, full: str, file: str, logical: str) -> tuple[int, str]: ...
def commit(self, db: _Database) -> None: ...
_directories: Set[str]
class Directory:

View File

@@ -1,5 +1,4 @@
import sys
from typing import Tuple
if sys.platform == "win32":
from . import Table
@@ -92,4 +91,4 @@ if sys.platform == "win32":
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

@@ -1,9 +1,8 @@
import sys
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]