Skip to content

Commit

Permalink
Add Union from typing, reformat flight_sql_server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Zhang committed Mar 16, 2024
1 parent f14f771 commit 9896dbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/brad/front_end/flight_sql_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

logger = logging.getLogger(__name__)


class BradFlightSqlServer:
def __init__(self, host, port):
self._flight_sql_server = brad_server.BradFlightSqlServer()
self._flight_sql_server.init(host, port)
self._thread = threading.Thread(name="BradFlightSqlServer",
target=self._serve)
self._thread = threading.Thread(name="BradFlightSqlServer", target=self._serve)

def start(self):
self._thread.start()
Expand Down
2 changes: 1 addition & 1 deletion src/brad/front_end/front_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import redshift_connector.error as redshift_errors
import psycopg
import struct
from typing import AsyncIterable, Optional, Dict, Any
from typing import AsyncIterable, Optional, Dict, Any, Union
from datetime import timedelta
from ddsketch import DDSketch

Expand Down

0 comments on commit 9896dbc

Please sign in to comment.