mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-07 10:20:58 +08:00
Use TypeAlias where possible for type aliases (#7630)
This commit is contained in:
@@ -2,7 +2,7 @@ import decimal
|
||||
from _typeshed import ReadableBuffer
|
||||
from datetime import date, datetime, time
|
||||
from typing import Any, Sequence, overload
|
||||
from typing_extensions import Literal
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
from .resultrow import ResultRow
|
||||
|
||||
@@ -44,7 +44,7 @@ class LOB:
|
||||
def read(self, size: int = ..., position: int = ...) -> str | bytes: ...
|
||||
def write(self, object: str | bytes) -> int: ...
|
||||
|
||||
_Parameters = Sequence[tuple[Any, ...]]
|
||||
_Parameters: TypeAlias = Sequence[tuple[Any, ...]]
|
||||
|
||||
class Cursor:
|
||||
description: tuple[tuple[Any, ...], ...]
|
||||
|
||||
Reference in New Issue
Block a user