mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 09:55:59 +08:00
Use TypeAlias where possible for type aliases (#7630)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import sys
|
||||
from typing import BinaryIO
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
__all__ = ["Error", "encode", "decode"]
|
||||
|
||||
_File = str | BinaryIO
|
||||
_File: TypeAlias = str | BinaryIO
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user