Using a functools.partial() object in health() results in an error:
File "/usr/local/lib/python3.10/site-packages/fastapi_health/route.py", line 40, in health
f"{condition.__name__}",
AttributeError: 'functools.partial' object has no attribute '__name__'
you can use condition.func.__name__ instead.
Using a
functools.partial()object inhealth()results in an error:you can use
condition.func.__name__instead.