We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 771e13c commit dfc8252Copy full SHA for dfc8252
src_py/event.py
@@ -1,6 +1,6 @@
1
from __future__ import annotations
2
3
-from pygame._event import * # pylint: disable=wildcard-import; lgtm[py/polluting-import]
+from pygame._event import * # pylint: disable=wildcard-import,unused-wildcard-import; lgtm[py/polluting-import]
4
from pygame._event import _internal_mod_init as _init, _internal_mod_quit as _quit
5
from pygame.constants import USEREVENT, NUMEVENTS
6
from pygame.base import error
@@ -156,8 +156,9 @@ def __getattribute__(self, name):
156
157
def __setattr__(self, name, value):
158
if name in ("_type", "_dict", "type", "dict"):
159
- return super().__setattr__(name, value)
160
- self._dict[name] = value
+ super().__setattr__(name, value)
+ else:
161
+ self._dict[name] = value
162
163
164
EventType = Event
0 commit comments