sizmailov / pybind11-stubgen

Generate stubs for python modules
Other
228 stars 45 forks source link

Make sure splitlines is not called on None #161

Closed ptosco closed 10 months ago

ptosco commented 10 months ago

Small change that avoids that splitlines is called on a None object; this may currently happen if prop.fget.__doc__ exists and is None, thus causing an exception ('NoneType' object has no attribute 'splitlines').

sizmailov commented 10 months ago

Thanks for the fix!