Skip to content

Commit bc7cfa3

Browse files
chore: update sample in README (#776)
1 parent 63012eb commit bc7cfa3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,13 +389,14 @@ your web application using [SQLAlchemy ORM](https://docs.sqlalchemy.org/en/14/or
389389
through the following:
390390

391391
```python
392-
from sqlalchemy import create_engine, engine
392+
from sqlalchemy import create_engine
393+
from sqlalchemy.engine import Engine
393394
from sqlalchemy.ext.declarative import declarative_base
394395
from sqlalchemy.orm import sessionmaker
395396
from google.cloud.sql.connector import Connector, IPTypes
396397

397398
# helper function to return SQLAlchemy connection pool
398-
def init_connection_pool(connector: Connector) -> engine.Engine:
399+
def init_connection_pool(connector: Connector) -> Engine:
399400
# Python Connector database connection function
400401
def getconn():
401402
conn = connector.connect(

0 commit comments

Comments
 (0)