pygobject / pgi-docgen

API Documentation Generator for PyGObject
https://lazka.github.io/pgi-docs/
GNU Lesser General Public License v2.1
127 stars 36 forks source link

error in get_variant #178

Closed lazka closed 5 years ago

lazka commented 5 years ago
pgidocgen/docobj.py:591: in from_object
    for base in iter_bases(obj):
pgidocgen/docobj.py:586: in iter_bases
    yield Class.from_object(repo, base)
pgidocgen/docobj.py:528: in from_object
    klass._parse_properties(repo, obj)
pgidocgen/docobj.py:140: in _parse_properties
    repo, self.fullname, attr_name, spec)
pgidocgen/docobj.py:277: in from_prop_spec
    spec.value_type.pytype, spec.default_value)
pgi/properties.py:73: in default_value
    v = gvalue.get_value()
pgi/overrides/GObject.py:345: in get_value
    return self.get_variant()

AttributeError: 'NoneType' object has no attribute '_obj'

maybe because I fixed the annotations for get_variant() and that case is not implemented in pgi

lazka commented 5 years ago

https://github.com/pygobject/pgi/commit/2090435df624