mirror of
https://github.com/dgelessus/python-rsrcfork.git
synced 2025-07-19 11:24:05 +00:00
Remove __slots__ declaration from Resource class
It doesn't seem to have any noticeable performance benefit.
This commit is contained in:
@@ -96,8 +96,6 @@ class ResourceAttrs(enum.Flag):
|
|||||||
class Resource(object):
|
class Resource(object):
|
||||||
"""A single resource from a resource file."""
|
"""A single resource from a resource file."""
|
||||||
|
|
||||||
__slots__ = ("type", "id", "name", "attributes", "data_raw", "_compressed_info", "_data_decompressed")
|
|
||||||
|
|
||||||
type: bytes
|
type: bytes
|
||||||
id: int
|
id: int
|
||||||
name: typing.Optional[bytes]
|
name: typing.Optional[bytes]
|
||||||
|
Reference in New Issue
Block a user