code: def getter_(self, fget) -> 'BaseProperty':
          
          self.fget = fget
          self.set_doc(fget.__doc__)
          return self
docs: Add the given getter function and its docstring to the
           property and return it.