Apply suggestions from code review

Co-Authored-By: nicoddemus <nicoddemus@gmail.com>
This commit is contained in:
Daniel Hahler
2019-03-07 12:53:47 -03:00
committed by GitHub
parent 0f4905a259
commit de5aa3847e

View File

@@ -245,7 +245,7 @@ class PyobjMixin(PyobjContext):
@property
def obj(self):
"""underlying python object"""
"""Underlying Python object."""
obj = getattr(self, "_obj", None)
if obj is None:
self._obj = obj = self._getobj()
@@ -260,7 +260,7 @@ class PyobjMixin(PyobjContext):
self._obj = value
def _getobj(self):
"""Gets the underlying python object. May be overwritten by subclasses."""
"""Gets the underlying Python object. May be overwritten by subclasses."""
return getattr(self.parent.obj, self.name)
def getmodpath(self, stopatmodule=True, includemodule=False):