Skip to content

Commit b0d1aca

Browse files
committed
Fixing pre-commit checks
1 parent 229bb85 commit b0d1aca

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

bluesky_httpserver/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
import urllib.parse
1010
from functools import lru_cache, partial
1111

12+
from bluesky_authentication.protocols import ExternalAuthenticator, InternalAuthenticator
1213
from bluesky_queueserver.manager.comms import validate_zmq_key
1314
from bluesky_queueserver_api.zmq.aio import REManagerAPI
1415
from fastapi import APIRouter, FastAPI, Request, Response
1516
from fastapi.middleware.cors import CORSMiddleware
1617
from fastapi.openapi.utils import get_openapi
17-
from bluesky_authentication.protocols import ExternalAuthenticator, InternalAuthenticator
1818

1919
from .console_output import CollectPublishedConsoleOutput, ConsoleOutputStream, SystemInfoStream
2020
from .core import PatchedStreamingResponse

bluesky_httpserver/authenticators.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
import warnings
22

3-
4-
warnings.warn(
5-
"Importing authenticators from 'bluesky_httpserver.authenticators' is deprecated "
6-
"and will be removed in a future release. Use 'bluesky_authentication.authenticators' "
7-
"and 'bluesky_authentication.protocols' instead.",
8-
DeprecationWarning,
9-
stacklevel=2,
10-
)
11-
123
from bluesky_authentication.authenticators import ( # noqa: F401
134
DictionaryAuthenticator,
145
DummyAuthenticator,
@@ -25,6 +16,14 @@
2516
UserSessionState,
2617
)
2718

19+
warnings.warn(
20+
"Importing authenticators from 'bluesky_httpserver.authenticators' is deprecated "
21+
"and will be removed in a future release. Use 'bluesky_authentication.authenticators' "
22+
"and 'bluesky_authentication.protocols' instead.",
23+
DeprecationWarning,
24+
stacklevel=2,
25+
)
26+
2827
__all__ = [
2928
"DictionaryAuthenticator",
3029
"DummyAuthenticator",

0 commit comments

Comments
 (0)