You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Because with_scopes raises NotImplementedError, the class cannot be used polymorphically where instances of Scoped are expected (see googleapis/google-cloud-python#3933). For instance, in C++,google.auth.compute_engine.credentials.Credentials wouldn't even be instantiable, because with_scopes is a pure virtual method cognate.
If there is a need for part of the interface to be expressed (e.g., the scopes, requires_scopes, and has_scopes methods), that should be factored into another class (maybed ReadonlyScoped?), with the current Scoped class extending it.
Because
with_scopesraisesNotImplementedError, the class cannot be used polymorphically where instances ofScopedare expected (see googleapis/google-cloud-python#3933). For instance, in C++,google.auth.compute_engine.credentials.Credentialswouldn't even be instantiable, becausewith_scopesis a pure virtual method cognate.If there is a need for part of the interface to be expressed (e.g., the
scopes,requires_scopes, andhas_scopesmethods), that should be factored into another class (maybedReadonlyScoped?), with the currentScopedclass extending it.