Skip to content

Commit

Permalink
update (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanne-aben authored Aug 8, 2023
1 parent 340fd3c commit c2bd060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typedspark/_core/column.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Module containing classes and functions related to TypedSpark Columns."""

from logging import warn
from typing import Generic, Optional, TypeVar, Union, get_args, get_origin
from typing import Generic, Optional, Type, TypeVar, Union, get_args, get_origin

from pyspark.sql import Column as SparkColumn
from pyspark.sql import DataFrame, SparkSession
Expand Down Expand Up @@ -80,7 +80,7 @@ def __hash__(self) -> int:
return hash((self.str, self._curid))

@property
def dtype(self) -> T:
def dtype(self) -> Type[T]:
"""Get the datatype of the column, e.g. Column[IntegerType] -> IntegerType."""
dtype = self._dtype
if get_origin(dtype) == StructType:
Expand Down

0 comments on commit c2bd060

Please sign in to comment.