Skip to content

Commit da7af3f

Browse files
committed
added types to Credentials attributes
1 parent cdcb249 commit da7af3f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

packages/google-auth/google/auth/credentials.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""Interfaces for credentials."""
1717

1818
import abc
19+
import datetime
1920
from enum import Enum
2021
import logging
2122
import 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

0 commit comments

Comments
 (0)