Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More typing edge cases #871

Open
blink1073 opened this issue Sep 26, 2023 · 0 comments
Open

More typing edge cases #871

blink1073 opened this issue Sep 26, 2023 · 0 comments

Comments

@blink1073
Copy link
Member

blink1073 commented Sep 26, 2023

Seen while updating jupyter_server:

jupyter_server/serverapp.py:1982: error: "object" not callable  [operator]
            self.authorizer = self.authorizer_class(
self.authorizer = self.authorizer_class(
            parent=self, log=self.log, identity_provider=self.identity_provider
        )
authorizer_class = Type(
        default_value=AllowAllAuthorizer,
        klass=Authorizer,
        config=True,
        help=_i18n("The authorizer class to use."),
    )

jupyter_server/auth/identity.py: note: In member "validate_security" of class "LegacyIdentityProvider":
jupyter_server/auth/identity.py:735: error: "RequestHandler" has no attribute "validate_security"  [attr-defined]
            return self.login_handler_class.validate_security(app, ssl_options)
    login_handler_class = Type(
        default_value="jupyter_server.auth.login.LoginFormHandler",
        klass=web.RequestHandler,
        config=True,
        help=_i18n("The login handler class to use, if any."),
    )

jupyter_server/gateway/gateway_client.py: note: In class "GatewayClient":
jupyter_server/gateway/gateway_client.py:465: error: Only concrete class can be given where
"type[GatewayTokenRenewerBase]" is expected  [type-abstract]
            klass=GatewayTokenRenewerBase,
    gateway_token_renewer_class = Type(
        klass=GatewayTokenRenewerBase,  # type:ignore[type-abstract]
        config=True,
        help="""The class to use for Gateway token renewal. (JUPYTER_GATEWAY_TOKEN_RENEWER_CLASS env var)""",
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant