mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -2,9 +2,9 @@ import datetime
|
||||
import time
|
||||
from collections.abc import Callable, Mapping, Sequence
|
||||
from decimal import Decimal
|
||||
from typing import Any, Optional, TypeVar
|
||||
from typing import Any, TypeVar
|
||||
|
||||
_EscaperMapping = Optional[Mapping[type[object], Callable[..., str]]]
|
||||
_EscaperMapping = Mapping[type[object], Callable[..., str]] | None
|
||||
_T = TypeVar("_T")
|
||||
|
||||
def escape_item(val: object, charset: object, mapping: _EscaperMapping = ...) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user