xorg-xcbproto/xcbgen/__init__.py
Robert Knutsson cacb1af5c1
Refactor imports
Use relative imports within the package.
Only import exactly whats needed in order not to accidentally export
internal symbols.
Explicitly state whats part of the module when doing a wildcard import.

Signed-off-by: Robert Knutsson <zybreak@gmail.com>
2026-01-26 13:40:02 +01:00

83 lines
1.3 KiB
Python

from .xtypes import (Type,
PrimitiveType,
SimpleType,
FileDescriptor,
Enum,
ListType,
ExprType,
PadType,
ComplexType,
SwitchType,
Struct,
Union,
CaseOrBitcaseType,
BitcaseType,
CaseType,
Reply,
Request,
EventStructAllowedRule,
EventStruct,
Event,
Error,
Doc,
tcard8,
tcard16,
tcard32,
tcard64,
tint8,
tint16,
tint32,
tint64,
tchar,
tfloat,
tdouble,
tbyte,
tbool,
tvoid)
from .state import Namespace, Module
from .expr import Field, Expression
from .error import ResolveException
__all__ = [
"Type",
"PrimitiveType",
"SimpleType",
"FileDescriptor",
"Enum",
"ListType",
"ExprType",
"PadType",
"ComplexType",
"SwitchType",
"Struct",
"Union",
"CaseOrBitcaseType",
"BitcaseType",
"CaseType",
"Reply",
"Request",
"EventStructAllowedRule",
"EventStruct",
"Event",
"Error",
"Doc",
"tcard8",
"tcard16",
"tcard32",
"tcard64",
"tint8",
"tint16",
"tint32",
"tint64",
"tchar",
"tfloat",
"tdouble",
"tbyte",
"tbool",
"tvoid",
"Namespace",
"Module",
"Field",
"Expression",
"ResolveException"
]