diff --git a/stubs/python-datemath/METADATA.toml b/stubs/python-datemath/METADATA.toml deleted file mode 100644 index c66bb84067e4..000000000000 --- a/stubs/python-datemath/METADATA.toml +++ /dev/null @@ -1,8 +0,0 @@ -version = "3.0.1" -upstream_repository = "https://github.com/nickmaccarthy/python-datemath" -# Requires a version of arrow with a `py.typed` file -requires = ["arrow>=1.0.1"] -obsolete_since = "3.0.2" # Released on 2024-09-11 - -[tool.stubtest] -ignore_missing_stub = true diff --git a/stubs/python-datemath/datemath/__init__.pyi b/stubs/python-datemath/datemath/__init__.pyi deleted file mode 100644 index ecb00250aa45..000000000000 --- a/stubs/python-datemath/datemath/__init__.pyi +++ /dev/null @@ -1,12 +0,0 @@ -from datetime import datetime - -import arrow - -from .helpers import DateMathException as DateMathException, parse as parse - -def dm( - expr: str, *, now: arrow.Arrow | None = ..., tz: str = ..., type: str | None = ..., roundDown: bool = ... -) -> arrow.Arrow: ... -def datemath( - expr: str, *, now: arrow.Arrow | None = ..., tz: str = ..., type: str | None = ..., roundDown: bool = ... -) -> datetime: ... diff --git a/stubs/python-datemath/datemath/helpers.pyi b/stubs/python-datemath/datemath/helpers.pyi deleted file mode 100644 index a8063825e2af..000000000000 --- a/stubs/python-datemath/datemath/helpers.pyi +++ /dev/null @@ -1,8 +0,0 @@ -import arrow - -class DateMathException(Exception): ... - -def parse( - expression: str, now: arrow.Arrow | None = None, tz: str = "UTC", type: str | None = None, roundDown: bool = True -) -> arrow.Arrow: ... -def __getattr__(name: str): ... # incomplete module