Skip to content

error: Argument 1 to "mul" of "Series" has incompatible type "timedelta64" [arg-type] #748

Closed
@randolf-scholz

Description

@randolf-scholz

Describe the bug

Series.mul has incompatible signature with Series.__mul__

To Reproduce

import pandas as pd
import numpy as np

s = pd.Series([1, 2, 3])
x = s * np.timedelta64(1, "s")  # ✔
y = s.mul(np.timedelta64(1, "s") )  # ✘ [arg-type]

Please complete the following information:

  • OS: Ubuntu 22.04
  • python version 3.10
  • mypy 1.4.1
  • pandas 2.0.3
  • pandas-stubs 2.0.2.230605

Metadata

Metadata

Assignees

No one assigned

    Labels

    Numeric OperationsArithmetic, Comparison, and Logical operations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions