Skip to content

Commit f22994f

Browse files
committed
enable_broker_on_windows and enable_broker_on_mac present as keyword-only arguments
1 parent 4e2a4ec commit f22994f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

msal/application.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,12 @@ class PublicClientApplication(ClientApplication): # browser app or mobile app
19191919
DEVICE_FLOW_CORRELATION_ID = "_correlation_id"
19201920
CONSOLE_WINDOW_HANDLE = object()
19211921

1922-
def __init__(self, client_id, client_credential=None, **kwargs):
1922+
def __init__(
1923+
self, client_id, client_credential=None,
1924+
*,
1925+
enable_broker_on_windows=None,
1926+
enable_broker_on_mac=None,
1927+
**kwargs):
19231928
"""Same as :func:`ClientApplication.__init__`,
19241929
except that ``client_credential`` parameter shall remain ``None``.
19251930
@@ -1996,9 +2001,6 @@ def __init__(self, client_id, client_credential=None, **kwargs):
19962001
"""
19972002
if client_credential is not None:
19982003
raise ValueError("Public Client should not possess credentials")
1999-
# Using kwargs notation for now. We will switch to keyword-only arguments.
2000-
enable_broker_on_windows = kwargs.pop("enable_broker_on_windows", False)
2001-
enable_broker_on_mac = kwargs.pop("enable_broker_on_mac", False)
20022004
self._enable_broker = bool(
20032005
enable_broker_on_windows and sys.platform == "win32"
20042006
or enable_broker_on_mac and sys.platform == "darwin")

0 commit comments

Comments
 (0)