mirror of
https://github.com/python/cpython.git
synced 2024-11-23 01:45:25 +08:00
6ae254aaa0
Tools such as ruff can ignore "imported but unused" warnings if a line ends with "# noqa: F401". It avoids the temptation to remove an import which is used effectively.
16 lines
285 B
Python
16 lines
285 B
Python
__all__ = [
|
|
# Functions
|
|
'calcsize', 'pack', 'pack_into', 'unpack', 'unpack_from',
|
|
'iter_unpack',
|
|
|
|
# Classes
|
|
'Struct',
|
|
|
|
# Exceptions
|
|
'error'
|
|
]
|
|
|
|
from _struct import *
|
|
from _struct import _clearcache # noqa: F401
|
|
from _struct import __doc__ # noqa: F401
|