Skip to content

Commit b634dce

Browse files
rustyconoverclaude
andcommitted
Fix import sorting in http __init__.py
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 88496f6 commit b634dce

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

vgi_rpc/http/__init__.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import contextlib
2727

28+
from vgi_rpc.http._bearer import bearer_authenticate, bearer_authenticate_static, chain_authenticate
2829
from vgi_rpc.http._client import (
2930
HttpServerCapabilities,
3031
HttpStreamSession,
@@ -45,22 +46,25 @@
4546
UPLOAD_URL_HEADER,
4647
_RpcHttpError,
4748
)
48-
from vgi_rpc.http._bearer import bearer_authenticate, bearer_authenticate_static, chain_authenticate
49+
from vgi_rpc.http._mtls import XfccElement, mtls_authenticate_xfcc
4950
from vgi_rpc.http._oauth import OAuthResourceMetadata
5051
from vgi_rpc.http._retry import HttpRetryConfig, HttpTransientError
51-
52-
with contextlib.suppress(ImportError):
53-
from vgi_rpc.http._oauth_jwt import jwt_authenticate # noqa: F401
54-
with contextlib.suppress(ImportError):
55-
from vgi_rpc.http._mtls import mtls_authenticate, mtls_authenticate_fingerprint, mtls_authenticate_subject # noqa: F401
56-
from vgi_rpc.http._mtls import XfccElement, mtls_authenticate_xfcc # noqa: F401
5752
from vgi_rpc.http._server import make_wsgi_app, serve_http
5853
from vgi_rpc.http._testing import (
5954
_SyncTestClient,
6055
_SyncTestResponse,
6156
make_sync_client,
6257
)
6358

59+
with contextlib.suppress(ImportError):
60+
from vgi_rpc.http._oauth_jwt import jwt_authenticate # noqa: F401
61+
with contextlib.suppress(ImportError):
62+
from vgi_rpc.http._mtls import ( # noqa: F401
63+
mtls_authenticate,
64+
mtls_authenticate_fingerprint,
65+
mtls_authenticate_subject,
66+
)
67+
6468
__all__ = [
6569
"bearer_authenticate",
6670
"bearer_authenticate_static",

0 commit comments

Comments
 (0)