Skip to content

Commit

Permalink
chore(deps): update dependency mypy to >=1.10.0,<1.13 (#187)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency mypy to >=1.10.0,<1.13

* ignores

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: eakmanrq <6326532+eakmanrq@users.noreply.github.com>
  • Loading branch information
renovate[bot] and eakmanrq authored Oct 18, 2024
1 parent fd82932 commit ee6bda6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dev": [
"duckdb>=0.9,<1.2",
"findspark>=2,<3",
"mypy>=1.10.0,<1.12",
"mypy>=1.10.0,<1.13",
"openai>=1.30,<1.53",
"pandas>=2,<3",
"pandas-stubs>=2,<3",
Expand Down
2 changes: 1 addition & 1 deletion sqlframe/base/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def substr(self, startPos: t.Union[int, Column], length: t.Union[int, Column]) -

def isin(self, *cols: t.Union[ColumnOrLiteral, t.Iterable[ColumnOrLiteral]]):
columns = flatten(cols) if isinstance(cols[0], (list, set, tuple)) else cols # type: ignore
expressions = [self._lit(x).expression for x in columns]
expressions = [self._lit(x).expression for x in columns] # type: ignore
return Column.invoke_expression_over_column(self, exp.In, expressions=expressions) # type: ignore

def between(
Expand Down
4 changes: 2 additions & 2 deletions sqlframe/base/function_alternatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -1320,8 +1320,8 @@ def flatten_using_array_flatten(col: ColumnOrName) -> Column:
def map_concat_using_map_cat(*cols: t.Union[ColumnOrName, t.Iterable[ColumnOrName]]) -> Column:
columns = list(flatten(cols)) if not isinstance(cols[0], (str, Column)) else cols # type: ignore
if len(columns) == 1:
return Column.invoke_anonymous_function(columns[0], "MAP_CAT")
return Column.invoke_anonymous_function(columns[0], "MAP_CAT", *columns[1:])
return Column.invoke_anonymous_function(columns[0], "MAP_CAT") # type: ignore
return Column.invoke_anonymous_function(columns[0], "MAP_CAT", *columns[1:]) # type: ignore


def sequence_from_generate_series(
Expand Down
4 changes: 2 additions & 2 deletions sqlframe/base/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1652,8 +1652,8 @@ def arrays_zip(*cols: ColumnOrName) -> Column:
def map_concat(*cols: t.Union[ColumnOrName, t.Iterable[ColumnOrName]]) -> Column:
columns = list(flatten(cols)) if not isinstance(cols[0], (str, Column)) else cols # type: ignore
if len(columns) == 1:
return Column.invoke_anonymous_function(columns[0], "MAP_CONCAT")
return Column.invoke_anonymous_function(columns[0], "MAP_CONCAT", *columns[1:])
return Column.invoke_anonymous_function(columns[0], "MAP_CONCAT") # type: ignore
return Column.invoke_anonymous_function(columns[0], "MAP_CONCAT", *columns[1:]) # type: ignore


@meta(unsupported_engines="postgres")
Expand Down

0 comments on commit ee6bda6

Please sign in to comment.