Skip to content

Commit ddb4a93

Browse files
author
Sylvain MARIE
committed
Minor fix: GUESS is not a possible value for self.nonable when the class attachment callback is called
1 parent 676c3f1 commit ddb4a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyfields/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def set_as_cls_member(self,
262262
# only use type hint if not empty
263263
self.type_hint = t
264264
# update the 'nonable' status
265-
if self.nonable in (UNKNOWN, GUESS):
265+
if self.nonable is UNKNOWN:
266266
if is_pep484_nonable(t):
267267
self.nonable = True
268268
else:

0 commit comments

Comments
 (0)