mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 05:22:23 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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]]
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user