File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- from pygame ._event import * # pylint: disable=wildcard-import; lgtm[py/polluting-import]
3
+ from pygame ._event import * # pylint: disable=wildcard-import,unused-wildcard-import ; lgtm[py/polluting-import]
4
4
from pygame ._event import _internal_mod_init as _init , _internal_mod_quit as _quit
5
5
from pygame .constants import USEREVENT , NUMEVENTS
6
6
from pygame .base import error
@@ -156,8 +156,9 @@ def __getattribute__(self, name):
156
156
157
157
def __setattr__ (self , name , value ):
158
158
if name in ("_type" , "_dict" , "type" , "dict" ):
159
- return super ().__setattr__ (name , value )
160
- self ._dict [name ] = value
159
+ super ().__setattr__ (name , value )
160
+ else :
161
+ self ._dict [name ] = value
161
162
162
163
163
164
EventType = Event
You can’t perform that action at this time.
0 commit comments