You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 29, 2023. It is now read-only.
raisepyxb.LogicError('%s: cannot construct instances of union'% (self.__class__.__name__,))
Because in __new__ the first argument is actually the class (of which an instance is to be constructed), so if we actually want this message to be helpful, it should probably look like this (i.e.: without the .__class__):
raisepyxb.LogicError('%s: cannot construct instances of union'% (self.__name__,))
… otherwise the message will always be "type: cannot construct instance of union"
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
pyxb/pyxb/binding/basis.py
Lines 1295 to 1296 in 14737c2
Because in
__new__
the first argument is actually the class (of which an instance is to be constructed), so if we actually want this message to be helpful, it should probably look like this (i.e.: without the.__class__
):… otherwise the message will always be
"type: cannot construct instance of union"
The text was updated successfully, but these errors were encountered: