mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import sys
|
||||
from typing import BinaryIO, Union
|
||||
from typing import BinaryIO
|
||||
|
||||
__all__ = ["Error", "encode", "decode"]
|
||||
|
||||
_File = Union[str, BinaryIO]
|
||||
_File = str | BinaryIO
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user