Skip to content

Commit 451f028

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent 5f92f7b commit 451f028

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

stdlib/socket.pyi

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -970,29 +970,17 @@ if sys.platform != "darwin" and sys.platform != "linux":
970970
__all__ += ["AF_BLUETOOTH"]
971971

972972
if sys.platform != "win32" and sys.platform != "darwin" and sys.platform != "linux":
973-
from _socket import (
974-
BTPROTO_HCI as BTPROTO_HCI,
975-
BTPROTO_L2CAP as BTPROTO_L2CAP,
976-
BTPROTO_SCO as BTPROTO_SCO,
977-
)
973+
from _socket import BTPROTO_HCI as BTPROTO_HCI, BTPROTO_L2CAP as BTPROTO_L2CAP, BTPROTO_SCO as BTPROTO_SCO
978974

979975
__all__ += ["BTPROTO_HCI", "BTPROTO_L2CAP", "BTPROTO_SCO"]
980976

981977
if sys.platform != "win32" and sys.platform != "darwin" and sys.platform != "linux":
982-
from _socket import (
983-
HCI_FILTER as HCI_FILTER,
984-
HCI_TIME_STAMP as HCI_TIME_STAMP,
985-
HCI_DATA_DIR as HCI_DATA_DIR,
986-
)
978+
from _socket import HCI_DATA_DIR as HCI_DATA_DIR, HCI_FILTER as HCI_FILTER, HCI_TIME_STAMP as HCI_TIME_STAMP
987979

988980
__all__ += ["HCI_FILTER", "HCI_TIME_STAMP", "HCI_DATA_DIR"]
989981

990982
if sys.version_info >= (3, 11) and sys.platform != "linux" and sys.platform != "win32" and sys.platform != "darwin":
991-
from _socket import (
992-
SCM_CREDS2 as SCM_CREDS2,
993-
LOCAL_CREDS as LOCAL_CREDS,
994-
LOCAL_CREDS_PERSISTENT as LOCAL_CREDS_PERSISTENT,
995-
)
983+
from _socket import LOCAL_CREDS as LOCAL_CREDS, LOCAL_CREDS_PERSISTENT as LOCAL_CREDS_PERSISTENT, SCM_CREDS2 as SCM_CREDS2
996984

997985
__all__ += ["SCM_CREDS2", "LOCAL_CREDS", "LOCAL_CREDS_PERSISTENT"]
998986

0 commit comments

Comments
 (0)