Use the `name` attribute on unknown objects when serialising them if present (like `__name__`).
Use the `name` attribute on unknown objects when serialising them if present (like `__name__`).

Fizzadar/pyinfra,Fizzadar/pyinfra