Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfWhitt committed Oct 15, 2024
1 parent 08665d4 commit a083e92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/travertino/declaration.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def validate(self, value):


class property_alias:
"""A base class for list / composite properties. Not designed to be instnatiated."""
"""A base class for list / composite properties. Not designed to be instantiated."""

def __set_name__(self, owner, name):
self.name = name
Expand Down Expand Up @@ -322,9 +322,9 @@ def __set__(self, obj, value):
# Let error propagate if it raises.
staged[name] = getattr(obj.__class__, name).validate(val)

# Next, look through the optional values. For each that isn't NORMAL, assign it
# to the first property that a) hasn't already had a value staged, and b)
# validates this value. (No need to handle NORMAL, since everything not
# Next, look through the optional values. For each that isn't resetting, assign
# it to the first property that a) hasn't already had a value staged, and b)
# validates this value. (No need to handle resets, since everything not
# specified will be unset anyway.)
optional_vals = value[: -len(self.required)]
for val in optional_vals:
Expand Down

0 comments on commit a083e92

Please sign in to comment.