remove helper for webhooks

This commit is contained in:
Matthias 2021-11-19 23:54:42 +01:00
parent 87e85c8081
commit ce71508d8d
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -696,18 +696,3 @@ def clean_decimal(number):
return Decimal(0)
return clean_number.quantize(Decimal(1)) if clean_number == clean_number.to_integral() else clean_number.normalize()
def inheritors(cls):
"""
Return all classes that are subclasses from the supplied cls
"""
subcls = set()
work = [cls]
while work:
parent = work.pop()
for child in parent.__subclasses__():
if child not in subcls:
subcls.add(child)
work.append(child)
return subcls