Skip to content

Commit fb79283

Browse files
chore: lint
1 parent 7ed9ced commit fb79283

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

google/cloud/sql/connector/asyncpg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def connect(
3636
server CA cert and ephemeral cert.
3737
kwargs: Keyword arguments for establishing asyncpg connection
3838
object to Cloud SQL instance.
39-
39+
4040
Returns:
4141
asyncpg.Connection: An asyncpg connection to the Cloud SQL
4242
instance.

google/cloud/sql/connector/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async def _get_metadata(
100100
instance: str,
101101
) -> dict[str, Any]:
102102
"""Requests metadata from the Cloud SQL Instance and returns a dictionary
103-
containing the IP addresses and certificate authority of the Cloud SQL
103+
containing the IP addresses and certificate authority of the Cloud SQL
104104
Instance.
105105
106106
Args:
@@ -109,7 +109,7 @@ async def _get_metadata(
109109
instance (str): A string representing the name of the instance.
110110
111111
Returns:
112-
A dictionary containing a dictionary of all IP addresses
112+
A dictionary containing a dictionary of all IP addresses
113113
and their type and a string representing the certificate authority.
114114
115115
Raises:
@@ -194,8 +194,8 @@ async def _get_ephemeral(
194194
authentication for Postgres or MySQL instances.
195195
196196
Returns:
197-
A tuple containing an ephemeral certificate from
198-
the Cloud SQL instance as well as a datetime object
197+
A tuple containing an ephemeral certificate from
198+
the Cloud SQL instance as well as a datetime object
199199
representing the expiration time of the certificate.
200200
"""
201201
headers = {

google/cloud/sql/connector/pg8000.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ def connect(
3232
sock (ssl.SSLSocket): An SSLSocket object created from the Cloud SQL
3333
server CA cert and ephemeral cert.
3434
kwargs: Additional arguments to pass to the pg8000 connect method.
35-
35+
3636
Returns:
3737
pg8000.dbapi.Connection: A pg8000 connection to the Cloud SQL
3838
instance.
39-
39+
4040
Raises:
4141
ImportError: The pg8000 module cannot be imported.
4242
"""

google/cloud/sql/connector/pymysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def connect(
3535
Returns:
3636
pymysql.connections.Connection: A pymysql connection to the Cloud SQL
3737
instance.
38-
38+
3939
Raises:
4040
ImportError: The pymysql module cannot be imported.
4141
"""

google/cloud/sql/connector/pytds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ def connect(ip_address: str, sock: ssl.SSLSocket, **kwargs: Any) -> "pytds.Conne
3232
instance.
3333
sock (ssl.SSLSocket): An SSLSocket object created from the Cloud SQL
3434
server CA cert and ephemeral cert.
35-
35+
3636
Returns:
3737
pytds.Connection: A pytds connection to the Cloud SQL
3838
instance.
39-
39+
4040
Raises:
4141
ImportError: The pytds module cannot be imported.
4242
"""

google/cloud/sql/connector/rate_limiter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020

2121
class AsyncRateLimiter(object):
2222
"""An asyncio-compatible rate limiter which uses the Token Bucket algorithm
23-
(https://en.wikipedia.org/wiki/Token_bucket) to limit the number
23+
(https://en.wikipedia.org/wiki/Token_bucket) to limit the number
2424
of function calls over a time interval using an event queue.
2525
2626
Args:
27-
max_capacity (int): The maximum capacity of tokens the bucket
27+
max_capacity (int): The maximum capacity of tokens the bucket
2828
will store at any one time. Default: 1
2929
rate (float): The number of tokens that should be added per second.
30-
loop (asyncio.AbstractEventLoop): The event loop to use.
30+
loop (asyncio.AbstractEventLoop): The event loop to use.
3131
If not provided, the default event loop will be used.
3232
"""
3333

google/cloud/sql/connector/refresh_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _seconds_until_refresh(
4646
4747
Args:
4848
expiration (datetime.datetime): The expiration time of the certificate.
49-
49+
5050
Returns:
5151
int: Time in seconds to wait before performing next refresh.
5252
"""
@@ -85,11 +85,11 @@ def _downscope_credentials(
8585
"""Generate a down-scoped credential.
8686
8787
Args:
88-
credentials (google.auth.credentials.Credentials):
88+
credentials (google.auth.credentials.Credentials):
8989
Credentials object used to generate down-scoped credentials.
90-
scopes (list[str]): List of Google scopes to
90+
scopes (list[str]): List of Google scopes to
9191
include in down-scoped credentials object.
92-
92+
9393
Returns:
9494
google.auth.credentials.Credentials: Down-scoped credentials object.
9595
"""

google/cloud/sql/connector/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def format_database_user(database_version: str, user: str) -> str:
8484
Args:
8585
database_version (str): Cloud SQL database version.
8686
user (str): Database username to connect to Cloud SQL database with.
87-
87+
8888
Returns:
8989
str: Formatted database username.
9090
"""

0 commit comments

Comments
 (0)