Skip to content

Commit 81acf31

Browse files
authored
fix error
1 parent 2af7baa commit 81acf31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ghapp/ghapp/cattrs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _register_ignore_optional_none(cls, converter=None):
5252
prev_unstructure = converter._unstructure_func.dispatch(cls)
5353
optional_attrs = {
5454
f.name for f in attr.fields(cls)
55-
if sys.version_info[0] <= 3 and sys.version_info[1] < 7:
55+
if (sys.version_info[0] <= 3) and (sys.version_info[1] < 7):
5656
if isinstance(f.type, typing._Union) and type(None) in f.type.__args__
5757
else:
5858
if isinstance(f.type, typing._GenericAlias) and type(None) in f.type.__args__

0 commit comments

Comments
 (0)