HyukjinKwon commented on a change in pull request #32968:
URL: https://github.com/apache/spark/pull/32968#discussion_r655794613
##########
File path: python/pyspark/pandas/base.py
##########
@@ -58,11 +57,16 @@
from pyspark.pandas.frame import DataFrame
if TYPE_CHECKING:
+ from pyspark.pandas.data_type_ops.base import DataTypeOps # noqa: F401
(SPARK-34943)
from pyspark.pandas.indexes import Index # noqa: F401 (SPARK-34943)
from pyspark.pandas.series import Series # noqa: F401 (SPARK-34943)
-def should_alignment_for_column_op(self: "IndexOpsMixin", other:
"IndexOpsMixin") -> bool:
+T_IndexOps = TypeVar("T_IndexOps", bound="IndexOpsMixin")
Review comment:
Is it a sort of convention? The naming seems a bit odd. I at least found
one example in Python docs:
https://docs.python.org/3/library/typing.html#typing.AnyStr
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]