Skip to content

Commit d83249b

Browse files
committed
Remove redundant isinstance check
1 parent cdfd969 commit d83249b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

temporalio/worker/workflow_sandbox/_restrictions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,8 +961,7 @@ def _is_restrictable(v: Any) -> bool:
961961
str,
962962
bytes,
963963
bytearray,
964-
datetime.date,
965-
datetime.datetime,
964+
datetime.date, # from which datetime.datetime inherits
966965
),
967966
)
968967

0 commit comments

Comments
 (0)