Skip to content

Commit e0bd002

Browse files
author
Fredrik Reinholdsen
committed
fix: Fixed broken strict type checking for Optionals. Fixes #330
1 parent 48806d8 commit e0bd002

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

serde/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,7 @@ def {{type_check_func}}(self):
722722
compat.is_list(f.type) or
723723
compat.is_dict(f.type) or
724724
compat.is_tuple(f.type) or
725+
compat.is_opt(f.type) or
725726
compat.is_primitive(f.type) or
726727
compat.is_str_serializable(f.type) or
727728
compat.is_datetime(f.type)) %}

0 commit comments

Comments
 (0)