mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-19 06:49:44 +08:00
Use TypeAlias where possible for type aliases (#7630)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import datetime
|
||||
from _typeshed import Self
|
||||
from typing import Any, Iterator, Text
|
||||
from typing_extensions import Literal
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
_RetType = type[float | datetime.datetime]
|
||||
_RetType: TypeAlias = type[float | datetime.datetime]
|
||||
|
||||
class CroniterError(ValueError): ...
|
||||
class CroniterBadCronError(CroniterError): ...
|
||||
|
||||
Reference in New Issue
Block a user