diff --git a/jupyterhub/services/auth.py b/jupyterhub/services/auth.py index 403fc526..d61239e5 100644 --- a/jupyterhub/services/auth.py +++ b/jupyterhub/services/auth.py @@ -349,7 +349,9 @@ class HubAuth(SingletonConfigurable): @property def oauth_scopes(self): warnings.warn( - "HubAuth.oauth_scopes is deprecated in JupyterHub 3.0. Use .access_scopes" + "HubAuth.oauth_scopes is deprecated in JupyterHub 3.0. Use .access_scopes", + DeprecationWarning, + stacklevel=2, ) return self.access_scopes