Skip to content

Commit

Permalink
Add type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
johanl-db committed Oct 11, 2023
1 parent 6d458a7 commit 531f3ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/delta/tests/test_deltatable.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from typing import List, Set, Dict, Optional, Any, Callable, Union, Tuple
from multiprocessing.pool import ThreadPool

from pyspark.sql import DataFrame, Row
from pyspark.sql import DataFrame, Row, SparkSession
from pyspark.sql.column import _to_seq # type: ignore[attr-defined]
from pyspark.sql.functions import col, lit, expr, floor
from pyspark.sql.types import StructType, StructField, StringType, IntegerType, LongType, DataType
Expand Down Expand Up @@ -323,7 +323,7 @@ def test_merge_with_inconsistent_sessions(self) -> None:
target_path = os.path.join(self.tempFile, "target")
spark = self.spark

def f(spark):
def f(spark: SparkSession) -> None:
spark.range(20) \
.withColumn("x", col("id")) \
.withColumn("y", col("id")) \
Expand Down

0 comments on commit 531f3ed

Please sign in to comment.