mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import ssl
|
||||
from httplib import HTTPConnectionProtocol, HTTPResponse
|
||||
from typing import Any, AnyStr, Callable, Mapping, Sequence, Text, Union
|
||||
from typing import Any, AnyStr, Callable, Mapping, Sequence, Text
|
||||
from urllib import addinfourl
|
||||
|
||||
_string = Union[str, unicode]
|
||||
_string = str | unicode
|
||||
|
||||
class URLError(IOError):
|
||||
reason: str | BaseException
|
||||
|
||||
Reference in New Issue
Block a user