Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion google/cloud/alloydbconnector/async_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ async def _remove_cached(self, instance_uri: str) -> None:
cache = self._cache.pop(instance_uri)
await cache.close()

async def __aenter__(self) -> Any:
async def __aenter__(self) -> AsyncConnector:
"""Enter async context manager by returning Connector object"""
return self

Expand Down
2 changes: 1 addition & 1 deletion google/cloud/alloydbconnector/psycopg.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _proxy(local: socket.socket, remote: "ssl.SSLSocket") -> None:
remote: The SSL socket connected to the AlloyDB proxy server.
"""

def forward(src: Any, dst: Any) -> None:
def forward(src: socket.socket, dst: socket.socket) -> None:
buf = bytearray(_CHUNK_SIZE)
view = memoryview(buf)
try:
Expand Down
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,8 @@ select = [
"ANN", # flake8-annotations
]
ignore = [
"E203",
"E231",
"E266",
"E501",
"ANN401",
"ANN401", # Any is needed for pass-through **kwargs
"E501", # line too long — enforced by ruff format
]

[tool.ruff.lint.per-file-ignores]
Expand Down
Loading