zero323 commented on a change in pull request #34354: URL: https://github.com/apache/spark/pull/34354#discussion_r734483147
########## File path: python/pyspark/sql/functions.py ########## @@ -3455,7 +3469,19 @@ def translate(srcCol: "ColumnOrName", matching: str, replace: str) -> Column: # ---------------------- Collection functions ------------------------------ +@overload def create_map(*cols: "ColumnOrName") -> Column: + ... + + +@overload +def create_map(__cols: Union[List["ColumnOrName"], Tuple["ColumnOrName", ...]]) -> Column: Review comment: This indicates that argument should be treated as positional-only. -- 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