Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Commit 6c6fedb

Browse files
committed
Add type: ignore annotations for Column.(__eq__|__neq__)
python/mypy#2783
1 parent 88bcb26 commit 6c6fedb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

third_party/3/pyspark/sql/column.pyi

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Stubs for pyspark.sql.column (Python 3.5)
22
#
3-
# Note: Column.__eq__ and Column.__ne__ will fail on tests with
4-
# Return type of ... incompatible with supertype "object"
5-
# due to incorrect return type
63

74
from typing import Any, Union
85
from pyspark.sql.types import *
@@ -25,8 +22,8 @@ class Column:
2522
def __rmod__(self, other: Any) -> 'Column': ...
2623
def __pow__(self, other: Any) -> 'Column': ...
2724
def __rpow__(self, other: Any) -> 'Column': ...
28-
def __eq__(self, other: Any) -> 'Column': ...
29-
def __ne__(self, other: Any) -> 'Column': ...
25+
def __eq__(self, other: Any) -> 'Column': ... # type: ignore
26+
def __ne__(self, other: Any) -> 'Column': ... # type: ignore
3027
def __lt__(self, other: Any) -> 'Column': ...
3128
def __le__(self, other: Any) -> 'Column': ...
3229
def __ge__(self, other: Any) -> 'Column': ...

0 commit comments

Comments
 (0)