Unverified Commit 2819ce64 authored by Boris Staletic's avatar Boris Staletic Committed by GitHub
Browse files

Avoid attr("__repr__") in initialize_generic (#2317)

If the default argument value is a class, and not an instance of a
class, `a.value.attr("__repr__")` raises a `ValueError`. Switching to
`repr(a.value)` makes this use case work.

Fixes #2028
parent 6f3e5e38
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment