Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 4a08c97

Browse files
committed
Documentation for _DynamicAttributeKepper
1 parent 72fca37 commit 4a08c97

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

sculpting/core.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ def _attribute_map_from(
160160

161161

162162
class _DynamicAttributeKepper(Generic[AttributeOwnerT], ABC):
163+
"""
164+
Class for managing attributes by delegating these responsibilities to
165+
functions.
166+
"""
167+
163168
def __init__(
164169
self,
165170
*,
@@ -204,11 +209,11 @@ def __setattr__(self, attribute_name: str, attribute_value: Any) -> Any:
204209

205210
@abstractmethod
206211
def _attribute_value_for(self, attribute_name: str, attribute_map: AttributeMap[AttributeOwnerT]) -> Any:
207-
pass
212+
"""Method for getting the value for an attribute by its map."""
208213

209214
@abstractmethod
210215
def _set_attribute_value_for(self, attribute_name: str, attribute_value: Any, attribute_map: AttributeMap[AttributeOwnerT]) -> Any:
211-
pass
216+
"""Method for setting a value for an attribute by its map."""
212217

213218
def __attribute_map_for(self, attribute_name: str) -> AttributeMap[AttributeOwnerT]:
214219
return (

0 commit comments

Comments
 (0)