We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2af7baa commit 81acf31Copy full SHA for 81acf31
ghapp/ghapp/cattrs.py
@@ -52,7 +52,7 @@ def _register_ignore_optional_none(cls, converter=None):
52
prev_unstructure = converter._unstructure_func.dispatch(cls)
53
optional_attrs = {
54
f.name for f in attr.fields(cls)
55
- if sys.version_info[0] <= 3 and sys.version_info[1] < 7:
+ if (sys.version_info[0] <= 3) and (sys.version_info[1] < 7):
56
if isinstance(f.type, typing._Union) and type(None) in f.type.__args__
57
else:
58
if isinstance(f.type, typing._GenericAlias) and type(None) in f.type.__args__
0 commit comments