• Jordan Brière's avatar
    Fix UnionType.__setattr__ in Shadow.py (GH-4727) · 54546b90
    Jordan Brière authored
    The condition should only evaluate to True when assigning __dict__, but it currently does for _, d, i, etc. as well as resulting in the following potential issues:
    
    * Non-member are being assigned to the object instead of raising.
    * The one-field rule can be bypassed.
    * Valid members that pass the condition are being assigned raw and are never cast to the specified type.
    54546b90
Shadow.py 15.7 KB