Mercurial > p > roundup > code
comparison roundup/rest.py @ 8206:8656bd1cf1f1
chore(ruff): clean whitespace and remove unrecognized noqa directive.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 11 Dec 2024 15:22:03 -0500 |
| parents | 4993e122235e |
| children | 894eabf95385 |
comparison
equal
deleted
inserted
replaced
| 8205:4993e122235e | 8206:8656bd1cf1f1 |
|---|---|
| 518 if skip_protected: | 518 if skip_protected: |
| 519 continue | 519 continue |
| 520 elif key not in unprotected_class_props: | 520 elif key not in unprotected_class_props: |
| 521 # report bad props as this is an error. | 521 # report bad props as this is an error. |
| 522 raise UsageError("Property %s not found in class %s" % (key, | 522 raise UsageError("Property %s not found in class %s" % (key, |
| 523 cl.classname)) # noqa: E128 | 523 cl.classname)) |
| 524 props[key] = self.prop_from_arg(cl, key, value, itemid) | 524 props[key] = self.prop_from_arg(cl, key, value, itemid) |
| 525 | 525 |
| 526 return props | 526 return props |
| 527 | 527 |
| 528 def prop_from_arg(self, cl, key, value, itemid=None): | 528 def prop_from_arg(self, cl, key, value, itemid=None): |
