Skip to content

Commit

Permalink
chore: update lint to use latest mypy (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon authored Jan 18, 2024
1 parent 655dcf8 commit 505bb29
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions google/cloud/sql/connector/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(
enable_iam_auth: bool = False,
timeout: int = 30,
credentials: Optional[Credentials] = None,
loop: asyncio.AbstractEventLoop = None,
loop: Optional[asyncio.AbstractEventLoop] = None,
quota_project: Optional[str] = None,
sqladmin_api_endpoint: str = "https://sqladmin.googleapis.com",
) -> None:
Expand Down Expand Up @@ -333,7 +333,7 @@ async def create_async_connector(
enable_iam_auth: bool = False,
timeout: int = 30,
credentials: Optional[Credentials] = None,
loop: asyncio.AbstractEventLoop = None,
loop: Optional[asyncio.AbstractEventLoop] = None,
) -> Connector:
"""
Create Connector object for asyncio connections that can auto-detect
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/sql/connector/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def __init__(
loop: asyncio.AbstractEventLoop,
credentials: Optional[Credentials] = None,
enable_iam_auth: bool = False,
quota_project: str = None,
quota_project: Optional[str] = None,
sqladmin_api_endpoint: str = "https://sqladmin.googleapis.com",
) -> None:
# validate and parse instance connection name
Expand Down
3 changes: 2 additions & 1 deletion google/cloud/sql/connector/rate_limiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
limitations under the License.
"""
import asyncio
from typing import Optional


class AsyncRateLimiter(object):
Expand Down Expand Up @@ -41,7 +42,7 @@ def __init__(
self,
max_capacity: int = 1,
rate: float = 1 / 60,
loop: asyncio.AbstractEventLoop = None,
loop: Optional[asyncio.AbstractEventLoop] = None,
) -> None:
self.rate = rate
self.max_capacity = max_capacity
Expand Down
3 changes: 1 addition & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

BLACK_VERSION = "black==23.12.1"
ISORT_VERSION = "isort==5.13.2"
MYPY_VERSION = "mypy==0.982"

LINT_PATHS = ["google", "tests", "noxfile.py", "setup.py"]

Expand All @@ -40,7 +39,7 @@ def lint(session):
session.install(
"flake8",
"flake8-annotations",
MYPY_VERSION,
"mypy",
BLACK_VERSION,
ISORT_VERSION,
"types-setuptools",
Expand Down

0 comments on commit 505bb29

Please sign in to comment.