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

"Fix" mypy issue in CI #119

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/onemod/constraints/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Constraint(BaseModel):
name: str
args: dict[str, Any]

func: Callable[[Series], None] = Field(default=None, exclude=True)
func: Callable[[Series], None] | None = Field(default=None, exclude=True)

def model_post_init(self, __context):
"""Reconstruct the `func` attribute after deserialization."""
Expand Down
1 change: 1 addition & 0 deletions src/onemod/stage/model_stages/rover_stage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# mypy: ignore-errors
"""ModRover covariate selection stage.

Notes
Expand Down
1 change: 1 addition & 0 deletions src/onemod/utils/residual.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# mypy: ignore-errors
import pandas as pd


Expand Down
1 change: 1 addition & 0 deletions src/onemod/utils/uncertainty.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# mypy: ignore-errors
import numpy as np
import pandas as pd
from msca.c2fun import c2fun_dict
Expand Down
Loading