Skip to content

Commit 4cd9873

Browse files
committed
Fix spelling errors
1 parent f3963df commit 4cd9873

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/labthings_fastapi/thing_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def set_myprop(self, val: int) -> None:
768768
function.
769769
770770
It will cause problems elsewhere in the code if descriptors are assigned
771-
to more than one attrubute, and this is checked in
771+
to more than one attribute, and this is checked in
772772
`.BaseDescriptor.__set_name__`\ . We therefore return the setter rather
773773
than the descriptor if the names don't match. The type hint does not
774774
reflect this, as it would cause problems when the names do match (the

tests/test_base_descriptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def set_prop1(self, val):
270270
assert "prop1" in str(excinfo.value)
271271
assert "set_prop1" in str(excinfo.value)
272272

273-
# For good measure, check re-use across classes is also prevented.
273+
# For good measure, check reuse across classes is also prevented.
274274
class FirstExampleClass:
275275
prop = BaseDescriptor()
276276

0 commit comments

Comments
 (0)