File tree Expand file tree Collapse file tree
packages/google-auth/google/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616"""Interfaces for credentials."""
1717
1818import abc
19+ import datetime
1920from enum import Enum
2021import logging
2122import os
@@ -56,16 +57,16 @@ class Credentials(_BaseCredentials):
5657 def __init__ (self ):
5758 super (Credentials , self ).__init__ ()
5859
59- self .expiry = None
60+ self .expiry : Optional [ datetime . datetime ] = None
6061 """Optional[datetime]: When the token expires and is no longer valid.
6162 If this is None, the token is assumed to never expire."""
62- self ._quota_project_id = None
63+ self ._quota_project_id : Optional [ str ] = None
6364 """Optional[str]: Project to use for quota and billing purposes."""
64- self ._trust_boundary = None
65+ self ._trust_boundary : Optional [ dict ] = None
6566 """Optional[dict]: Cache of a trust boundary response which has a list
6667 of allowed regions and an encoded string representation of credentials
6768 trust boundary."""
68- self ._universe_domain = DEFAULT_UNIVERSE_DOMAIN
69+ self ._universe_domain : Optional [ str ] = DEFAULT_UNIVERSE_DOMAIN
6970 """Optional[str]: The universe domain value, default is googleapis.com
7071 """
7172
You can’t perform that action at this time.
0 commit comments