Skip to content

Commit fd3a2d1

Browse files
authored
Chore!: bump sqlglot to v25.20.1 (#3100)
1 parent a068ab0 commit fd3a2d1

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"requests",
4848
"rich[jupyter]",
4949
"ruamel.yaml",
50-
"sqlglot[rs]~=25.19.0",
50+
"sqlglot[rs]~=25.20.1",
5151
],
5252
extras_require={
5353
"bigquery": [

sqlmesh/core/console.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def plan(
215215

216216
@abc.abstractmethod
217217
def log_test_results(
218-
self, result: unittest.result.TestResult, output: str, target_dialect: str
218+
self, result: unittest.result.TestResult, output: t.Optional[str], target_dialect: str
219219
) -> None:
220220
"""Display the test result and output.
221221
@@ -985,7 +985,7 @@ def _prompt_promote(self, plan_builder: PlanBuilder) -> None:
985985
plan_builder.apply()
986986

987987
def log_test_results(
988-
self, result: unittest.result.TestResult, output: str, target_dialect: str
988+
self, result: unittest.result.TestResult, output: t.Optional[str], target_dialect: str
989989
) -> None:
990990
divider_length = 70
991991
if result.wasSuccessful():
@@ -1477,7 +1477,7 @@ def radio_button_selected(change: t.Dict[str, t.Any]) -> None:
14771477
self.display(radio)
14781478

14791479
def log_test_results(
1480-
self, result: unittest.result.TestResult, output: str, target_dialect: str
1480+
self, result: unittest.result.TestResult, output: t.Optional[str], target_dialect: str
14811481
) -> None:
14821482
import ipywidgets as widgets
14831483

@@ -1786,7 +1786,7 @@ def _show_categorized_snapshots(self, plan: Plan, default_catalog: t.Optional[st
17861786
self._print("\n```")
17871787

17881788
def log_test_results(
1789-
self, result: unittest.result.TestResult, output: str, target_dialect: str
1789+
self, result: unittest.result.TestResult, output: t.Optional[str], target_dialect: str
17901790
) -> None:
17911791
# import ipywidgets as widgets
17921792
if result.wasSuccessful():
@@ -2079,7 +2079,7 @@ def show_model_difference_summary(
20792079
self._write(f" Modified: {modified}")
20802080

20812081
def log_test_results(
2082-
self, result: unittest.result.TestResult, output: str, target_dialect: str
2082+
self, result: unittest.result.TestResult, output: t.Optional[str], target_dialect: str
20832083
) -> None:
20842084
self._write("Test Results:", result)
20852085

sqlmesh/core/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
MAX_FORK_WORKERS: t.Optional[int] = int(os.getenv("MAX_FORK_WORKERS")) # type: ignore
4242
except TypeError:
4343
MAX_FORK_WORKERS = (
44-
len(os.sched_getaffinity(0)) if hasattr(os, "sched_getaffinity") else None
44+
len(os.sched_getaffinity(0)) if hasattr(os, "sched_getaffinity") else None # type: ignore
4545
)
4646
else:
4747
MAX_FORK_WORKERS = 1

sqlmesh/integrations/github/cicd/controller.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,9 @@ def update_test_check(
665665
"""
666666

667667
def conclusion_handler(
668-
conclusion: GithubCheckConclusion, result: unittest.result.TestResult, output: str
668+
conclusion: GithubCheckConclusion,
669+
result: t.Optional[unittest.result.TestResult],
670+
output: t.Optional[str],
669671
) -> t.Tuple[GithubCheckConclusion, str, t.Optional[str]]:
670672
if result:
671673
# Clear out console

web/server/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def log_event(
238238
)
239239

240240
def log_test_results(
241-
self, result: unittest.result.TestResult, output: str, target_dialect: str
241+
self, result: unittest.result.TestResult, output: t.Optional[str], target_dialect: str
242242
) -> None:
243243
if result.wasSuccessful():
244244
self.log_event(

0 commit comments

Comments
 (0)