Skip to content

Commit 853242d

Browse files
typing in population_view.py (#626)
Category: typing JIRA issue: https://jira.ihme.washington.edu/browse/MIC-6107 Testing check builds
1 parent b178830 commit 853242d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
**3.4.5 - 05/30/25**
2+
3+
- Type-hinting: Fix mypy errors in framework/population/population_view.py
4+
15
**3.4.4 - 05/27/25**
26

37
- Feature: Update package pins for isort and pandas stubs

src/vivarium/framework/population/population_view.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,4 +499,7 @@ def _update_column_and_ensure_dtype(
499499
f"the {update.name} column from {existing.dtype} to {update.dtype}."
500500
)
501501
new_state_table_values = new_state_table_values.astype(update_values.dtype)
502-
return pd.Series(new_state_table_values, index=existing.index, name=existing.name)
502+
new_state_table: pd.Series[Any] = pd.Series(
503+
new_state_table_values, index=existing.index, name=existing.name
504+
)
505+
return new_state_table

0 commit comments

Comments
 (0)