We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95c8e39 commit 23c0aa2Copy full SHA for 23c0aa2
1 file changed
py/type.go
@@ -1093,7 +1093,7 @@ func (t *Type) Ready() error {
1093
1094
// if the type dictionary doesn't contain a __doc__, set it from
1095
// the tp_doc slot.
1096
- if _, ok := t.Dict["__doc__"]; ok {
+ if _, ok := t.Dict["__doc__"]; !ok {
1097
if t.Doc != "" {
1098
t.Dict["__doc__"] = String(t.Doc)
1099
} else {
0 commit comments