mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-19 23:09:55 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import datetime
|
||||
from _typeshed import Self
|
||||
from typing import Any, Iterator, Text, Union
|
||||
from typing import Any, Iterator, Text
|
||||
from typing_extensions import Literal
|
||||
|
||||
_RetType = Union[type[float], type[datetime.datetime]]
|
||||
_RetType = type[float | datetime.datetime]
|
||||
|
||||
class CroniterError(ValueError): ...
|
||||
class CroniterBadCronError(CroniterError): ...
|
||||
|
||||
Reference in New Issue
Block a user