Open EarlMilktea opened 1 month ago
Functions named get_ / set_ should be renamed due to following observations:
get_
set_
We should not use get_ / set_ as it is not a getter/setter.
We should consider @property for more user-friendly APIs.
@property
We should consider @functools.cached_property.
@functools.cached_property
We should avoid get_ / set_ as attribute getter/setter are considered to be lightweight.
Functions named
get_
/set_
should be renamed due to following observations:We should not use
get_
/set_
as it is not a getter/setter.We should consider
@property
for more user-friendly APIs.We should consider
@functools.cached_property
.We should avoid
get_
/set_
as attribute getter/setter are considered to be lightweight.