Details
Description
I originally opened an issue and created a PR in the https://github.com/zero323/pyspark-stubs repository.
Issue: https://github.com/zero323/pyspark-stubs/issues/548
PR: https://github.com/zero323/pyspark-stubs/pull/549
—
The type hint for pyspark.rdd.RDD.histogram's buckets argument should be Union[int, List[T], Tuple[T, ...]]
From pyspark source:
if isinstance(buckets, int): ... elif isinstance(buckets, (list, tuple)): ... else: raise TypeError("buckets should be a list or tuple or number(int or long)")