Skip to content

Commit e630184

Browse files
committed
Remove redundant database state cast
1 parent ca37ead commit e630184

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/_pytask/database_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from pathlib import Path
66
from typing import TYPE_CHECKING
77
from typing import Literal
8-
from typing import cast
98

109
from sqlalchemy import create_engine
1110
from sqlalchemy import inspect
@@ -124,7 +123,6 @@ def update_states_in_database(session: Session, task_signature: str) -> None:
124123
f"{node.name!r} when updating database states."
125124
)
126125
raise TypeError(msg)
127-
node = cast("PTask | PNode", node)
128126
hash_ = node.state()
129127
if hash_ is None:
130128
continue

0 commit comments

Comments
 (0)