|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2005 - 2022 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module defining type strings for the different Python types. |
|
8 """ |
|
9 |
|
10 |
|
11 SpecialAttributes = ( |
|
12 "__bases__", |
|
13 "__class__", |
|
14 "__dict__", |
|
15 "__doc__", |
|
16 "__mro__", |
|
17 "__name__", |
|
18 "__qualname__", |
|
19 ) |
|
20 |
|
21 BatchSize = 200 |
|
22 ConfigQtNames = ("PyQt5.", "PyQt6.", "PySide2.", "PySide6.", "Shiboken.EnumType") |
|
23 |
|
24 ConfigKnownQtTypes = ( |
|
25 ".QByteArray", |
|
26 ".QPoint", |
|
27 ".QPointF", |
|
28 ".QLabel", |
|
29 ".QPushButton", |
|
30 ".QRect", |
|
31 ".QRectF", |
|
32 ".QSize", |
|
33 ".QSizeF", |
|
34 ".QColor", |
|
35 ".QDate", |
|
36 ".QTime", |
|
37 ".QDateTime", |
|
38 ".QDir", |
|
39 ".QFile", |
|
40 ".QFont", |
|
41 ".QUrl", |
|
42 ".QModelIndex", |
|
43 ".QRegExp", |
|
44 ".QRegularExpression", |
|
45 ".QAction", |
|
46 ".QKeySequence", |
|
47 ".QDomAttr", |
|
48 ".QDomCharacterData", |
|
49 ".QDomComment", |
|
50 ".QDomDocument", |
|
51 ".QDomElement", |
|
52 ".QDomText", |
|
53 ".QHostAddress", |
|
54 ".EnumType", |
|
55 ) |
|
56 |
|
57 NonExpandableTypes = ( |
|
58 "int", |
|
59 "float", |
|
60 "bool", |
|
61 "NoneType", |
|
62 "bytes", |
|
63 "function", |
|
64 "object", |
|
65 "builtin_function_or_method", |
|
66 "classmethod_descriptor", |
|
67 "weakref", |
|
68 "wrapper_descriptor", |
|
69 "method_descriptor", |
|
70 "property", |
|
71 "method", |
|
72 "getset_descriptor", |
|
73 "member_descriptor", |
|
74 ) |