HyukjinKwon commented on a change in pull request #34323:
URL: https://github.com/apache/spark/pull/34323#discussion_r734239196



##########
File path: python/pyspark/streaming/kinesis.py
##########
@@ -14,17 +14,21 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
+from typing import TypeVar, Optional, Callable
 
 from pyspark.serializers import NoOpSerializer
 from pyspark.storagelevel import StorageLevel
 from pyspark.streaming import DStream
-from pyspark.util import _print_missing_jar
+from pyspark.streaming.context import StreamingContext
+from pyspark.util import _print_missing_jar  # type: ignore[attr-defined]
 
 
 __all__ = ['KinesisUtils', 'InitialPositionInStream', 'utf8_decoder']
 
+T = TypeVar("T")

Review comment:
       Can you see if it works if you set `covariant=True`?




-- 
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.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to