Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1260

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

pre-commit-ci[bot]
Copy link
Contributor

@pre-commit-ci pre-commit-ci bot commented Dec 9, 2024

@wd60622
Copy link
Contributor

wd60622 commented Dec 11, 2024

Some mypy issues:

pymc_marketing/mmm/transformers.py:542: error: Argument 2 to "logistic_saturation" has incompatible type "ndarray[tuple[int, ...], dtype[floating[Any]]] | float"; expected "ndarray[tuple[int, ...], dtype[float64]] | float"  [arg-type]
pymc_marketing/clv/utils.py:383: error: No overload variant of "timedelta64" matches argument types "int", "str"  [call-overload]
pymc_marketing/clv/utils.py:383: note: Possible overload variants:
pymc_marketing/clv/utils.py:383: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, _TD64ItemT_co | timedelta64[_TD64ItemT_co], /) -> timedelta64[_TD64ItemT_co]
pymc_marketing/clv/utils.py:383: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self) -> timedelta64[Literal[0]]
pymc_marketing/clv/utils.py:383: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, Literal['NAT', 'NaT', 'nat', b'NAT', b'NaT', b'nat'] | None, Literal['Y', 'M', b'Y', b'M', 'W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'] | tuple[Literal['Y', 'M', b'Y', b'M', 'W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'], SupportsIndex], /) -> timedelta64[None]
pymc_marketing/clv/utils.py:383: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, timedelta, Literal['ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'] | tuple[Literal['ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'], SupportsIndex], /) -> timedelta64[int]
pymc_marketing/clv/utils.py:383: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, int, Literal['Y', 'M', b'Y', b'M', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'] | tuple[Literal['Y', 'M', b'Y', b'M', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'], SupportsIndex] = ..., /) -> timedelta64[int]
pymc_marketing/clv/utils.py:383: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, timedelta | int, Literal['W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us'] | tuple[Literal['W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us'], SupportsIndex] = ..., /) -> timedelta64[timedelta]
pymc_marketing/clv/utils.py:383: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, int | bytes | str | timedelta | None, Literal['Y', 'M', b'Y', b'M', 'W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'] | tuple[Literal['Y', 'M', b'Y', b'M', 'W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'], SupportsIndex] = ..., /) -> timedelta64[_TD64ItemT_co]
pymc_marketing/clv/utils.py:389: error: No overload variant of "timedelta64" matches argument types "int", "str"  [call-overload]
pymc_marketing/clv/utils.py:389: note: Possible overload variants:
pymc_marketing/clv/utils.py:389: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, _TD64ItemT_co | timedelta64[_TD64ItemT_co], /) -> timedelta64[_TD64ItemT_co]
pymc_marketing/clv/utils.py:389: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self) -> timedelta64[Literal[0]]
pymc_marketing/clv/utils.py:389: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, Literal['NAT', 'NaT', 'nat', b'NAT', b'NaT', b'nat'] | None, Literal['Y', 'M', b'Y', b'M', 'W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'] | tuple[Literal['Y', 'M', b'Y', b'M', 'W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'], SupportsIndex], /) -> timedelta64[None]
pymc_marketing/clv/utils.py:389: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, timedelta, Literal['ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'] | tuple[Literal['ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'], SupportsIndex], /) -> timedelta64[int]
pymc_marketing/clv/utils.py:389: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, int, Literal['Y', 'M', b'Y', b'M', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'] | tuple[Literal['Y', 'M', b'Y', b'M', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'], SupportsIndex] = ..., /) -> timedelta64[int]
pymc_marketing/clv/utils.py:389: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, timedelta | int, Literal['W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us'] | tuple[Literal['W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us'], SupportsIndex] = ..., /) -> timedelta64[timedelta]
pymc_marketing/clv/utils.py:389: note:     def [_TD64ItemT_co: timedelta | int | None] __init__(self, int | bytes | str | timedelta | None, Literal['Y', 'M', b'Y', b'M', 'W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'] | tuple[Literal['Y', 'M', b'Y', b'M', 'W', 'D', b'W', b'D', 'h', 'm', 's', 'ms', 'us', 'ΞΌs', b'h', b'm', b's', b'ms', b'us', 'ns', 'ps', 'fs', 'as', b'ns', b'ps', b'fs', b'as'], SupportsIndex] = ..., /) -> timedelta64[_TD64ItemT_co]
pymc_marketing/mmm/plot.py:276: error: List comprehension has incompatible type List[tuple[Sequence[Any], ...]]; expected List[tuple[int, int]]  [misc]
pymc_marketing/mmm/base.py:559: error: Argument "alpha" to "_add_hdi_to_plot" of "MMMModelBuilder" has incompatible type "floating[Any]"; expected "float"  [arg-type]
Found 5 errors in 4 files (checked 40 source files)

@wd60622 wd60622 mentioned this pull request Dec 11, 2024
@juanitorduz
Copy link
Collaborator

image

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.1 β†’ v0.8.3](astral-sh/ruff-pre-commit@v0.8.1...v0.8.3)
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from d6a51fb to 521f692 Compare December 16, 2024 18:04
@juanitorduz juanitorduz merged commit 6d70476 into main Dec 16, 2024
7 checks passed
@juanitorduz juanitorduz deleted the pre-commit-ci-update-config branch December 16, 2024 18:28
aseyboldt pushed a commit to aseyboldt/pymc-marketing that referenced this pull request Dec 20, 2024
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.1 β†’ v0.8.3](astral-sh/ruff-pre-commit@v0.8.1...v0.8.3)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants