mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-09 19:21:26 +08:00
Upgrade to isort 5 (#4323)
This now also reformats imports not at the top of files.
This commit is contained in:
@@ -155,7 +155,7 @@ class Event:
|
||||
def wait(self, timeout: Optional[float] = ...) -> bool: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from _thread import _ExceptHookArgs as ExceptHookArgs, ExceptHookArgs as _ExceptHookArgs # don't ask
|
||||
from _thread import ExceptHookArgs as _ExceptHookArgs, _ExceptHookArgs as ExceptHookArgs # don't ask
|
||||
|
||||
excepthook: Callable[[_ExceptHookArgs], Any]
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from socket import SocketType
|
||||
from typing import Any, Callable, Dict, List, Optional, Tuple, Union, overload
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
from queue import SimpleQueue, Queue
|
||||
from queue import Queue, SimpleQueue
|
||||
elif sys.version_info >= (3,):
|
||||
from queue import Queue
|
||||
else:
|
||||
|
||||
@@ -155,7 +155,7 @@ class Event:
|
||||
def wait(self, timeout: Optional[float] = ...) -> bool: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from _thread import _ExceptHookArgs as ExceptHookArgs, ExceptHookArgs as _ExceptHookArgs # don't ask
|
||||
from _thread import ExceptHookArgs as _ExceptHookArgs, _ExceptHookArgs as ExceptHookArgs # don't ask
|
||||
|
||||
excepthook: Callable[[_ExceptHookArgs], Any]
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from .types import ErrorStream, StartResponse, WSGIApplication, WSGIEnvironment
|
||||
if sys.version_info < (3,):
|
||||
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
|
||||
else:
|
||||
from http.server import HTTPServer, BaseHTTPRequestHandler
|
||||
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||
|
||||
server_version: str # undocumented
|
||||
sys_version: str # undocumented
|
||||
|
||||
Reference in New Issue
Block a user