fake-bpy-module 20240210__py3-none-any.whl → 20240326__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- addon_utils/__init__.pyi +54 -11
- animsys_refactor/__init__.pyi +36 -7
- aud/__init__.pyi +307 -321
- bgl/__init__.pyi +2926 -865
- bl_app_override/__init__.pyi +14 -4
- bl_app_override/helpers/__init__.pyi +24 -3
- bl_app_template_utils/__init__.pyi +19 -5
- bl_console_utils/__init__.pyi +0 -1
- bl_console_utils/autocomplete/__init__.pyi +2 -3
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -6
- bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -4
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -6
- bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -3
- bl_i18n_utils/__init__.pyi +2 -3
- bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -16
- bl_i18n_utils/merge_po/__init__.pyi +4 -2
- bl_i18n_utils/settings/__init__.pyi +53 -7
- bl_i18n_utils/utils/__init__.pyi +332 -45
- bl_i18n_utils/utils_cli/__init__.pyi +29 -7
- bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -2
- bl_i18n_utils/utils_rtl/__init__.pyi +9 -3
- bl_keymap_utils/__init__.pyi +2 -3
- bl_keymap_utils/io/__init__.pyi +44 -10
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -2
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +9 -3
- bl_keymap_utils/versioning/__init__.pyi +4 -2
- bl_math/__init__.pyi +21 -22
- bl_operators/__init__.pyi +30 -24
- bl_operators/add_mesh_torus/__init__.pyi +171 -38
- bl_operators/anim/__init__.pyi +1065 -227
- bl_operators/assets/__init__.pyi +427 -93
- bl_operators/bmesh/__init__.pyi +0 -1
- bl_operators/bmesh/find_adjacent/__init__.pyi +44 -10
- bl_operators/clip/__init__.pyi +1342 -288
- bl_operators/console/__init__.pyi +647 -141
- bl_operators/constraint/__init__.pyi +524 -113
- bl_operators/file/__init__.pyi +396 -85
- bl_operators/freestyle/__init__.pyi +532 -114
- bl_operators/geometry_nodes/__init__.pyi +2412 -597
- bl_operators/image/__init__.pyi +380 -83
- bl_operators/mesh/__init__.pyi +401 -86
- bl_operators/node/__init__.pyi +1756 -385
- bl_operators/object/__init__.pyi +2022 -553
- bl_operators/object_align/__init__.pyi +145 -32
- bl_operators/object_quick_effects/__init__.pyi +555 -125
- bl_operators/object_randomize_transform/__init__.pyi +136 -33
- bl_operators/presets/__init__.pyi +3516 -709
- bl_operators/rigidbody/__init__.pyi +401 -86
- bl_operators/screen_play_rendered_anim/__init__.pyi +129 -30
- bl_operators/sequencer/__init__.pyi +731 -150
- bl_operators/spreadsheet/__init__.pyi +145 -31
- bl_operators/userpref/__init__.pyi +3416 -825
- bl_operators/uvcalc_follow_active/__init__.pyi +149 -33
- bl_operators/uvcalc_lightmap/__init__.pyi +187 -35
- bl_operators/uvcalc_transform/__init__.pyi +344 -74
- bl_operators/vertexpaint_dirt/__init__.pyi +140 -31
- bl_operators/view3d/__init__.pyi +697 -147
- bl_operators/wm/__init__.pyi +6287 -1534
- bl_previews_utils/__init__.pyi +0 -1
- bl_previews_utils/bl_previews_render/__init__.pyi +34 -8
- bl_rna_utils/__init__.pyi +0 -1
- bl_rna_utils/data_path/__init__.pyi +12 -3
- bl_text_utils/__init__.pyi +0 -1
- bl_text_utils/external_editor/__init__.pyi +4 -2
- bl_ui/__init__.pyi +567 -170
- bl_ui/anim/__init__.pyi +164 -34
- bl_ui/asset_shelf/__init__.pyi +146 -32
- bl_ui/generic_ui_list/__init__.pyi +471 -100
- bl_ui/node_add_menu/__init__.pyi +196 -41
- bl_ui/node_add_menu_compositor/__init__.pyi +3017 -622
- bl_ui/node_add_menu_geometry/__init__.pyi +8075 -1592
- bl_ui/node_add_menu_shader/__init__.pyi +1709 -349
- bl_ui/node_add_menu_texture/__init__.pyi +1502 -306
- bl_ui/properties_animviz/__init__.pyi +32 -3
- bl_ui/properties_collection/__init__.pyi +787 -180
- bl_ui/properties_constraint/__init__.pyi +28635 -5524
- bl_ui/properties_data_armature/__init__.pyi +1905 -449
- bl_ui/properties_data_bone/__init__.pyi +1560 -337
- bl_ui/properties_data_camera/__init__.pyi +2269 -495
- bl_ui/properties_data_curve/__init__.pyi +2362 -535
- bl_ui/properties_data_curves/__init__.pyi +951 -204
- bl_ui/properties_data_empty/__init__.pyi +317 -70
- bl_ui/properties_data_gpencil/__init__.pyi +2924 -735
- bl_ui/properties_data_grease_pencil/__init__.pyi +1631 -189
- bl_ui/properties_data_lattice/__init__.pyi +472 -105
- bl_ui/properties_data_light/__init__.pyi +1570 -338
- bl_ui/properties_data_lightprobe/__init__.pyi +938 -209
- bl_ui/properties_data_mesh/__init__.pyi +3205 -768
- bl_ui/properties_data_metaball/__init__.pyi +774 -171
- bl_ui/properties_data_modifier/__init__.pyi +1554 -329
- bl_ui/properties_data_pointcloud/__init__.pyi +821 -195
- bl_ui/properties_data_shaderfx/__init__.pyi +154 -35
- bl_ui/properties_data_speaker/__init__.pyi +782 -169
- bl_ui/properties_data_volume/__init__.pyi +1243 -282
- bl_ui/properties_freestyle/__init__.pyi +4071 -1031
- bl_ui/properties_grease_pencil_common/__init__.pyi +2399 -484
- bl_ui/properties_mask_common/__init__.pyi +1256 -250
- bl_ui/properties_material/__init__.pyi +2351 -543
- bl_ui/properties_material_gpencil/__init__.pyi +1590 -366
- bl_ui/properties_object/__init__.pyi +2179 -513
- bl_ui/properties_output/__init__.pyi +2956 -706
- bl_ui/properties_paint_common/__init__.pyi +947 -141
- bl_ui/properties_particle/__init__.pyi +8322 -1971
- bl_ui/properties_physics_cloth/__init__.pyi +2254 -509
- bl_ui/properties_physics_common/__init__.pyi +200 -45
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +4454 -966
- bl_ui/properties_physics_field/__init__.pyi +1695 -365
- bl_ui/properties_physics_fluid/__init__.pyi +6127 -1281
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +157 -33
- bl_ui/properties_physics_rigidbody/__init__.pyi +1254 -279
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2053 -484
- bl_ui/properties_physics_softbody/__init__.pyi +2394 -543
- bl_ui/properties_render/__init__.pyi +8312 -1934
- bl_ui/properties_scene/__init__.pyi +2211 -540
- bl_ui/properties_texture/__init__.pyi +4185 -1014
- bl_ui/properties_view_layer/__init__.pyi +2803 -665
- bl_ui/properties_workspace/__init__.pyi +626 -149
- bl_ui/properties_world/__init__.pyi +1092 -235
- bl_ui/space_clip/__init__.pyi +11475 -2806
- bl_ui/space_console/__init__.pyi +967 -203
- bl_ui/space_dopesheet/__init__.pyi +4260 -967
- bl_ui/space_filebrowser/__init__.pyi +4852 -1188
- bl_ui/space_graph/__init__.pyi +3251 -703
- bl_ui/space_image/__init__.pyi +12218 -2968
- bl_ui/space_info/__init__.pyi +964 -201
- bl_ui/space_nla/__init__.pyi +2756 -585
- bl_ui/space_node/__init__.pyi +5661 -1266
- bl_ui/space_outliner/__init__.pyi +2294 -479
- bl_ui/space_properties/__init__.pyi +417 -93
- bl_ui/space_sequencer/__init__.pyi +12436 -3010
- bl_ui/space_spreadsheet/__init__.pyi +184 -37
- bl_ui/space_statusbar/__init__.pyi +135 -31
- bl_ui/space_text/__init__.pyi +2556 -543
- bl_ui/space_time/__init__.pyi +1151 -244
- bl_ui/space_toolsystem_common/__init__.pyi +368 -67
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1378 -229
- bl_ui/space_topbar/__init__.pyi +4214 -888
- bl_ui/space_userpref/__init__.pyi +13920 -3468
- bl_ui/space_view3d/__init__.pyi +42751 -9613
- bl_ui/space_view3d_toolbar/__init__.pyi +16379 -3860
- bl_ui/utils/__init__.pyi +42 -5
- bl_ui_utils/__init__.pyi +0 -1
- bl_ui_utils/bug_report_url/__init__.pyi +4 -2
- bl_ui_utils/layout/__init__.pyi +4 -2
- blend_render_info/__init__.pyi +13 -4
- blf/__init__.pyi +15 -18
- bmesh/__init__.pyi +18 -18
- bmesh/geometry/__init__.pyi +5 -6
- bmesh/ops/__init__.pyi +1337 -1158
- bmesh/types/__init__.pyi +464 -374
- bmesh/utils/__init__.pyi +64 -70
- bpy/__init__.pyi +6 -7
- bpy/app/__init__.pyi +36 -38
- bpy/app/handlers/__init__.pyi +37 -38
- bpy/app/icons/__init__.pyi +8 -11
- bpy/app/timers/__init__.pyi +18 -17
- bpy/app/translations/__init__.pyi +32 -30
- bpy/msgbus/__init__.pyi +25 -20
- bpy/ops/__init__.pyi +63 -64
- bpy/ops/action/__init__.pyi +408 -436
- bpy/ops/anim/__init__.pyi +459 -577
- bpy/ops/armature/__init__.pyi +396 -498
- bpy/ops/asset/__init__.pyi +187 -213
- bpy/ops/boid/__init__.pyi +50 -68
- bpy/ops/brush/__init__.pyi +72 -97
- bpy/ops/buttons/__init__.pyi +202 -193
- bpy/ops/cachefile/__init__.pyi +198 -188
- bpy/ops/camera/__init__.pyi +24 -31
- bpy/ops/clip/__init__.pyi +1021 -1082
- bpy/ops/cloth/__init__.pyi +11 -15
- bpy/ops/collection/__init__.pyi +36 -51
- bpy/ops/console/__init__.pyi +155 -209
- bpy/ops/constraint/__init__.pyi +286 -254
- bpy/ops/curve/__init__.pyi +597 -659
- bpy/ops/curves/__init__.pyi +191 -225
- bpy/ops/cycles/__init__.pyi +21 -30
- bpy/ops/dpaint/__init__.pyi +34 -47
- bpy/ops/ed/__init__.pyi +160 -176
- bpy/ops/export_anim/__init__.pyi +51 -34
- bpy/ops/export_mesh/__init__.pyi +47 -45
- bpy/ops/export_scene/__init__.pyi +659 -504
- bpy/ops/file/__init__.pyi +469 -474
- bpy/ops/fluid/__init__.pyi +89 -119
- bpy/ops/font/__init__.pyi +325 -361
- bpy/ops/geometry/__init__.pyi +86 -114
- bpy/ops/gizmogroup/__init__.pyi +22 -28
- bpy/ops/gpencil/__init__.pyi +1900 -1976
- bpy/ops/graph/__init__.pyi +875 -894
- bpy/ops/grease_pencil/__init__.pyi +572 -508
- bpy/ops/image/__init__.pyi +805 -855
- bpy/ops/import_anim/__init__.pyi +66 -46
- bpy/ops/import_curve/__init__.pyi +7 -11
- bpy/ops/import_mesh/__init__.pyi +19 -25
- bpy/ops/import_scene/__init__.pyi +164 -147
- bpy/ops/info/__init__.pyi +88 -85
- bpy/ops/lattice/__init__.pyi +86 -90
- bpy/ops/marker/__init__.pyi +135 -146
- bpy/ops/mask/__init__.pyi +372 -436
- bpy/ops/material/__init__.pyi +18 -25
- bpy/ops/mball/__init__.pyi +93 -99
- bpy/ops/mesh/__init__.pyi +2525 -2664
- bpy/ops/nla/__init__.pyi +398 -455
- bpy/ops/node/__init__.pyi +1015 -1207
- bpy/ops/object/__init__.pyi +3423 -3390
- bpy/ops/outliner/__init__.pyi +667 -685
- bpy/ops/paint/__init__.pyi +719 -672
- bpy/ops/paintcurve/__init__.pyi +64 -85
- bpy/ops/palette/__init__.pyi +48 -67
- bpy/ops/particle/__init__.pyi +323 -367
- bpy/ops/pose/__init__.pyi +569 -474
- bpy/ops/poselib/__init__.pyi +77 -100
- bpy/ops/preferences/__init__.pyi +460 -512
- bpy/ops/ptcache/__init__.pyi +46 -63
- bpy/ops/render/__init__.pyi +121 -155
- bpy/ops/rigidbody/__init__.pyi +148 -143
- bpy/ops/scene/__init__.pyi +336 -380
- bpy/ops/screen/__init__.pyi +454 -530
- bpy/ops/script/__init__.pyi +19 -28
- bpy/ops/sculpt/__init__.pyi +734 -587
- bpy/ops/sculpt_curves/__init__.pyi +51 -56
- bpy/ops/sequencer/__init__.pyi +1617 -1500
- bpy/ops/sound/__init__.pyi +392 -315
- bpy/ops/spreadsheet/__init__.pyi +31 -42
- bpy/ops/surface/__init__.pyi +198 -163
- bpy/ops/text/__init__.pyi +479 -545
- bpy/ops/text_editor/__init__.pyi +11 -15
- bpy/ops/texture/__init__.pyi +26 -36
- bpy/ops/transform/__init__.pyi +825 -941
- bpy/ops/ui/__init__.pyi +246 -295
- bpy/ops/uilist/__init__.pyi +34 -38
- bpy/ops/uv/__init__.pyi +912 -824
- bpy/ops/view2d/__init__.pyi +157 -197
- bpy/ops/view3d/__init__.pyi +777 -878
- bpy/ops/wm/__init__.pyi +4102 -3595
- bpy/ops/workspace/__init__.pyi +42 -58
- bpy/ops/world/__init__.pyi +6 -9
- bpy/path/__init__.pyi +166 -109
- bpy/props/__init__.pyi +478 -395
- bpy/types/__init__.pyi +87194 -81467
- bpy/utils/__init__.pyi +325 -169
- bpy/utils/previews/__init__.pyi +108 -21
- bpy/utils/units/__init__.pyi +37 -39
- bpy_extras/__init__.pyi +4 -9
- bpy_extras/anim_utils/__init__.pyi +25 -55
- bpy_extras/asset_utils/__init__.pyi +3 -13
- bpy_extras/id_map_utils/__init__.pyi +1 -4
- bpy_extras/image_utils/__init__.pyi +33 -23
- bpy_extras/io_utils/__init__.pyi +116 -66
- bpy_extras/keyconfig_utils/__init__.pyi +5 -3
- bpy_extras/mesh_utils/__init__.pyi +42 -34
- bpy_extras/node_utils/__init__.pyi +4 -4
- bpy_extras/object_utils/__init__.pyi +58 -43
- bpy_extras/view3d_utils/__init__.pyi +64 -63
- bpy_restrict_state/__init__.pyi +14 -2
- bpy_types/__init__.pyi +3873 -998
- console_python/__init__.pyi +41 -8
- console_shell/__init__.pyi +24 -6
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/METADATA +1 -1
- fake_bpy_module-20240326.dist-info/RECORD +343 -0
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/WHEEL +1 -1
- freestyle/__init__.pyi +4 -5
- freestyle/chainingiterators/__init__.pyi +229 -73
- freestyle/functions/__init__.pyi +624 -402
- freestyle/predicates/__init__.pyi +381 -169
- freestyle/shaders/__init__.pyi +424 -155
- freestyle/types/__init__.pyi +1572 -726
- freestyle/utils/ContextFunctions/__init__.pyi +54 -43
- freestyle/utils/__init__.pyi +67 -31
- gpu/__init__.pyi +3 -4
- gpu/capabilities/__init__.pyi +57 -37
- gpu/matrix/__init__.pyi +14 -17
- gpu/platform/__init__.pyi +5 -6
- gpu/select/__init__.pyi +2 -5
- gpu/shader/__init__.pyi +14 -12
- gpu/state/__init__.pyi +48 -62
- gpu/texture/__init__.pyi +7 -7
- gpu/types/__init__.pyi +670 -229
- gpu_extras/__init__.pyi +1 -2
- gpu_extras/batch/__init__.pyi +27 -6
- gpu_extras/presets/__init__.pyi +67 -27
- graphviz_export/__init__.pyi +9 -3
- idprop/__init__.pyi +0 -1
- idprop/types/__init__.pyi +42 -13
- imbuf/__init__.pyi +6 -10
- imbuf/types/__init__.pyi +8 -16
- keyingsets_builtins/__init__.pyi +3149 -702
- keyingsets_utils/__init__.pyi +69 -15
- mathutils/__init__.pyi +951 -876
- mathutils/bvhtree/__init__.pyi +47 -48
- mathutils/geometry/__init__.pyi +237 -242
- mathutils/interpolate/__init__.pyi +3 -6
- mathutils/kdtree/__init__.pyi +23 -26
- mathutils/noise/__init__.pyi +50 -51
- nodeitems_builtins/__init__.pyi +50 -11
- nodeitems_utils/__init__.pyi +58 -11
- rna_info/__init__.pyi +230 -27
- rna_keymap_ui/__init__.pyi +29 -7
- rna_prop_ui/__init__.pyi +69 -13
- rna_xml/__init__.pyi +29 -7
- sys_info/__init__.pyi +4 -2
- bpy_extras/bmesh_utils/__init__.pyi +0 -7
- bpy_extras/extensions/__init__.pyi +0 -5
- bpy_extras/extensions/junction_module/__init__.pyi +0 -13
- bpy_extras/node_shader_utils/__init__.pyi +0 -132
- bpy_extras/wm_utils/__init__.pyi +0 -5
- bpy_extras/wm_utils/progress_report/__init__.pyi +0 -30
- fake_bpy_module-20240210.dist-info/RECORD +0 -349
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/top_level.txt +0 -0
bl_i18n_utils/utils/__init__.pyi
CHANGED
|
@@ -1,78 +1,365 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
|
|
4
3
|
GenericType = typing.TypeVar("GenericType")
|
|
5
4
|
|
|
6
5
|
class I18n:
|
|
6
|
+
""" """
|
|
7
|
+
|
|
7
8
|
parsers: typing.Any
|
|
9
|
+
""" """
|
|
10
|
+
|
|
8
11
|
py_file: typing.Any
|
|
12
|
+
""" """
|
|
13
|
+
|
|
9
14
|
writers: typing.Any
|
|
15
|
+
""" """
|
|
16
|
+
|
|
17
|
+
def check_py_module_has_translations(self, src, settings):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
:param src:
|
|
21
|
+
:param settings:
|
|
22
|
+
"""
|
|
23
|
+
...
|
|
24
|
+
|
|
25
|
+
def escape(self, do_all):
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
:param do_all:
|
|
29
|
+
"""
|
|
30
|
+
...
|
|
31
|
+
|
|
32
|
+
def parse(self, kind, src, langs):
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
:param kind:
|
|
36
|
+
:param src:
|
|
37
|
+
:param langs:
|
|
38
|
+
"""
|
|
39
|
+
...
|
|
40
|
+
|
|
41
|
+
def parse_from_po(self, src, langs):
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
:param src:
|
|
45
|
+
:param langs:
|
|
46
|
+
"""
|
|
47
|
+
...
|
|
48
|
+
|
|
49
|
+
def parse_from_py(self, src, langs):
|
|
50
|
+
"""
|
|
10
51
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def print_stats(self, prefix, print_msgs):
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
52
|
+
:param src:
|
|
53
|
+
:param langs:
|
|
54
|
+
"""
|
|
55
|
+
...
|
|
56
|
+
|
|
57
|
+
def print_stats(self, prefix, print_msgs):
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
:param prefix:
|
|
61
|
+
:param print_msgs:
|
|
62
|
+
"""
|
|
63
|
+
...
|
|
64
|
+
|
|
65
|
+
def unescape(self, do_all):
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
:param do_all:
|
|
69
|
+
"""
|
|
70
|
+
...
|
|
71
|
+
|
|
72
|
+
def update_info(self):
|
|
73
|
+
""" """
|
|
74
|
+
...
|
|
75
|
+
|
|
76
|
+
def write(self, kind, langs):
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
:param kind:
|
|
80
|
+
:param langs:
|
|
81
|
+
"""
|
|
82
|
+
...
|
|
83
|
+
|
|
84
|
+
def write_to_po(self, langs):
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
:param langs:
|
|
88
|
+
"""
|
|
89
|
+
...
|
|
90
|
+
|
|
91
|
+
def write_to_py(self, langs):
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
:param langs:
|
|
95
|
+
"""
|
|
96
|
+
...
|
|
22
97
|
|
|
23
98
|
class I18nMessage:
|
|
99
|
+
""" """
|
|
100
|
+
|
|
24
101
|
comment_lines: typing.Any
|
|
102
|
+
""" """
|
|
103
|
+
|
|
25
104
|
is_commented: typing.Any
|
|
105
|
+
""" """
|
|
106
|
+
|
|
26
107
|
is_fuzzy: typing.Any
|
|
108
|
+
""" """
|
|
109
|
+
|
|
27
110
|
is_tooltip: typing.Any
|
|
111
|
+
""" """
|
|
112
|
+
|
|
28
113
|
msgctxt: typing.Any
|
|
114
|
+
""" """
|
|
115
|
+
|
|
29
116
|
msgctxt_lines: typing.Any
|
|
117
|
+
""" """
|
|
118
|
+
|
|
30
119
|
msgid: typing.Any
|
|
120
|
+
""" """
|
|
121
|
+
|
|
31
122
|
msgid_lines: typing.Any
|
|
123
|
+
""" """
|
|
124
|
+
|
|
32
125
|
msgstr: typing.Any
|
|
126
|
+
""" """
|
|
127
|
+
|
|
33
128
|
msgstr_lines: typing.Any
|
|
129
|
+
""" """
|
|
130
|
+
|
|
34
131
|
settings: typing.Any
|
|
132
|
+
""" """
|
|
133
|
+
|
|
35
134
|
sources: typing.Any
|
|
135
|
+
""" """
|
|
136
|
+
|
|
137
|
+
def copy(self):
|
|
138
|
+
""" """
|
|
139
|
+
...
|
|
36
140
|
|
|
37
|
-
def
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
141
|
+
def do_escape(self, txt):
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
:param txt:
|
|
145
|
+
"""
|
|
146
|
+
...
|
|
147
|
+
|
|
148
|
+
def do_unescape(self, txt):
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
:param txt:
|
|
152
|
+
"""
|
|
153
|
+
...
|
|
154
|
+
|
|
155
|
+
def escape(self, do_all):
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
:param do_all:
|
|
159
|
+
"""
|
|
160
|
+
...
|
|
161
|
+
|
|
162
|
+
def normalize(self, max_len):
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
:param max_len:
|
|
166
|
+
"""
|
|
167
|
+
...
|
|
168
|
+
|
|
169
|
+
def unescape(self, do_all):
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
:param do_all:
|
|
173
|
+
"""
|
|
174
|
+
...
|
|
43
175
|
|
|
44
176
|
class I18nMessages:
|
|
177
|
+
""" """
|
|
178
|
+
|
|
45
179
|
parsers: typing.Any
|
|
180
|
+
""" """
|
|
181
|
+
|
|
46
182
|
writers: typing.Any
|
|
183
|
+
""" """
|
|
184
|
+
|
|
185
|
+
def check(self, fix):
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
:param fix:
|
|
189
|
+
"""
|
|
190
|
+
...
|
|
191
|
+
|
|
192
|
+
def clean_commented(self):
|
|
193
|
+
""" """
|
|
194
|
+
...
|
|
195
|
+
|
|
196
|
+
def escape(self, do_all):
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
:param do_all:
|
|
200
|
+
"""
|
|
201
|
+
...
|
|
47
202
|
|
|
48
|
-
def check(self, fix): ...
|
|
49
|
-
def clean_commented(self): ...
|
|
50
|
-
def escape(self, do_all): ...
|
|
51
203
|
def find_best_messages_matches(
|
|
52
204
|
self, msgs, msgmap, rna_ctxt, rna_struct_name, rna_prop_name, rna_enum_name
|
|
53
|
-
):
|
|
205
|
+
):
|
|
206
|
+
"""
|
|
207
|
+
|
|
208
|
+
:param msgs:
|
|
209
|
+
:param msgmap:
|
|
210
|
+
:param rna_ctxt:
|
|
211
|
+
:param rna_struct_name:
|
|
212
|
+
:param rna_prop_name:
|
|
213
|
+
:param rna_enum_name:
|
|
214
|
+
"""
|
|
215
|
+
...
|
|
216
|
+
|
|
54
217
|
def gen_empty_messages(
|
|
55
218
|
self, uid, blender_ver, blender_hash, bl_time, default_copyright, settings
|
|
56
|
-
):
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
def
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
def
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
219
|
+
):
|
|
220
|
+
"""
|
|
221
|
+
|
|
222
|
+
:param uid:
|
|
223
|
+
:param blender_ver:
|
|
224
|
+
:param blender_hash:
|
|
225
|
+
:param bl_time:
|
|
226
|
+
:param default_copyright:
|
|
227
|
+
:param settings:
|
|
228
|
+
"""
|
|
229
|
+
...
|
|
230
|
+
|
|
231
|
+
def invalidate_reverse_cache(self, rebuild_now):
|
|
232
|
+
"""
|
|
233
|
+
|
|
234
|
+
:param rebuild_now:
|
|
235
|
+
"""
|
|
236
|
+
...
|
|
237
|
+
|
|
238
|
+
def merge(self, msgs, replace):
|
|
239
|
+
"""
|
|
240
|
+
|
|
241
|
+
:param msgs:
|
|
242
|
+
:param replace:
|
|
243
|
+
"""
|
|
244
|
+
...
|
|
245
|
+
|
|
246
|
+
def normalize(self, max_len):
|
|
247
|
+
"""
|
|
248
|
+
|
|
249
|
+
:param max_len:
|
|
250
|
+
"""
|
|
251
|
+
...
|
|
252
|
+
|
|
253
|
+
def parse(self, kind, key, src):
|
|
254
|
+
"""
|
|
255
|
+
|
|
256
|
+
:param kind:
|
|
257
|
+
:param key:
|
|
258
|
+
:param src:
|
|
259
|
+
"""
|
|
260
|
+
...
|
|
261
|
+
|
|
262
|
+
def parse_messages_from_po(self, src, key):
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
:param src:
|
|
266
|
+
:param key:
|
|
267
|
+
"""
|
|
268
|
+
...
|
|
269
|
+
|
|
270
|
+
def print_info(self, prefix, output, print_stats, print_errors):
|
|
271
|
+
"""
|
|
272
|
+
|
|
273
|
+
:param prefix:
|
|
274
|
+
:param output:
|
|
275
|
+
:param print_stats:
|
|
276
|
+
:param print_errors:
|
|
277
|
+
"""
|
|
278
|
+
...
|
|
279
|
+
|
|
280
|
+
def rtl_process(self):
|
|
281
|
+
""" """
|
|
282
|
+
...
|
|
283
|
+
|
|
284
|
+
def unescape(self, do_all):
|
|
285
|
+
"""
|
|
286
|
+
|
|
287
|
+
:param do_all:
|
|
288
|
+
"""
|
|
289
|
+
...
|
|
290
|
+
|
|
291
|
+
def update(self, ref, use_similar, keep_old_commented):
|
|
292
|
+
"""
|
|
293
|
+
|
|
294
|
+
:param ref:
|
|
295
|
+
:param use_similar:
|
|
296
|
+
:param keep_old_commented:
|
|
297
|
+
"""
|
|
298
|
+
...
|
|
299
|
+
|
|
300
|
+
def update_info(self):
|
|
301
|
+
""" """
|
|
302
|
+
...
|
|
303
|
+
|
|
304
|
+
def write(self, kind, dest):
|
|
305
|
+
"""
|
|
306
|
+
|
|
307
|
+
:param kind:
|
|
308
|
+
:param dest:
|
|
309
|
+
"""
|
|
310
|
+
...
|
|
311
|
+
|
|
312
|
+
def write_messages_to_mo(self, fname):
|
|
313
|
+
"""
|
|
314
|
+
|
|
315
|
+
:param fname:
|
|
316
|
+
"""
|
|
317
|
+
...
|
|
318
|
+
|
|
319
|
+
def write_messages_to_po(self, fname, compact):
|
|
320
|
+
"""
|
|
321
|
+
|
|
322
|
+
:param fname:
|
|
323
|
+
:param compact:
|
|
324
|
+
"""
|
|
325
|
+
...
|
|
326
|
+
|
|
327
|
+
def enable_addons(addons, support, disable, check_only):
|
|
328
|
+
""" """
|
|
329
|
+
|
|
330
|
+
...
|
|
331
|
+
|
|
332
|
+
def find_best_isocode_matches(uid, iso_codes):
|
|
333
|
+
""" """
|
|
334
|
+
|
|
335
|
+
...
|
|
336
|
+
|
|
337
|
+
def get_best_similar(data):
|
|
338
|
+
""" """
|
|
339
|
+
|
|
340
|
+
...
|
|
341
|
+
|
|
342
|
+
def get_po_files_from_dir(root_dir, langs):
|
|
343
|
+
""" """
|
|
344
|
+
|
|
345
|
+
...
|
|
346
|
+
|
|
347
|
+
def is_valid_po_path(path):
|
|
348
|
+
""" """
|
|
349
|
+
|
|
350
|
+
...
|
|
351
|
+
|
|
352
|
+
def list_po_dir(root_path, settings):
|
|
353
|
+
""" """
|
|
354
|
+
|
|
355
|
+
...
|
|
356
|
+
|
|
357
|
+
def locale_explode(locale):
|
|
358
|
+
""" """
|
|
359
|
+
|
|
360
|
+
...
|
|
361
|
+
|
|
362
|
+
def locale_match(loc1, loc2):
|
|
363
|
+
""" """
|
|
364
|
+
|
|
365
|
+
...
|
|
@@ -1,11 +1,33 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
|
|
4
3
|
GenericType = typing.TypeVar("GenericType")
|
|
5
4
|
|
|
6
|
-
def cleanup_po(args, settings):
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def
|
|
5
|
+
def cleanup_po(args, settings):
|
|
6
|
+
""" """
|
|
7
|
+
|
|
8
|
+
...
|
|
9
|
+
|
|
10
|
+
def language_menu(args, settings):
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
...
|
|
14
|
+
|
|
15
|
+
def main():
|
|
16
|
+
""" """
|
|
17
|
+
|
|
18
|
+
...
|
|
19
|
+
|
|
20
|
+
def rtl_process_po(args, settings):
|
|
21
|
+
""" """
|
|
22
|
+
|
|
23
|
+
...
|
|
24
|
+
|
|
25
|
+
def strip_po(args, settings):
|
|
26
|
+
""" """
|
|
27
|
+
|
|
28
|
+
...
|
|
29
|
+
|
|
30
|
+
def update_po(args, settings):
|
|
31
|
+
""" """
|
|
32
|
+
|
|
33
|
+
...
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
|
|
4
3
|
GenericType = typing.TypeVar("GenericType")
|
|
5
4
|
|
|
6
|
-
def log2vis(msgs, settings):
|
|
7
|
-
|
|
5
|
+
def log2vis(msgs, settings):
|
|
6
|
+
""" """
|
|
7
|
+
|
|
8
|
+
...
|
|
9
|
+
|
|
10
|
+
def protect_format_seq(msg):
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
...
|
bl_keymap_utils/__init__.pyi
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
2
|
+
from . import io
|
|
3
|
+
from . import keymap_from_toolbar
|
|
3
4
|
from . import keymap_hierarchy
|
|
4
5
|
from . import platform_helpers
|
|
5
6
|
from . import versioning
|
|
6
|
-
from . import io
|
|
7
|
-
from . import keymap_from_toolbar
|
|
8
7
|
|
|
9
8
|
GenericType = typing.TypeVar("GenericType")
|
bl_keymap_utils/io/__init__.pyi
CHANGED
|
@@ -1,14 +1,48 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
|
|
4
3
|
GenericType = typing.TypeVar("GenericType")
|
|
5
4
|
|
|
6
|
-
def indent(levels):
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
def indent(levels):
|
|
6
|
+
""" """
|
|
7
|
+
|
|
8
|
+
...
|
|
9
|
+
|
|
10
|
+
def keyconfig_export_as_data(wm, kc, filepath, all_keymaps):
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
...
|
|
14
|
+
|
|
15
|
+
def keyconfig_import_from_data(name, keyconfig_data, keyconfig_version):
|
|
16
|
+
""" """
|
|
17
|
+
|
|
18
|
+
...
|
|
19
|
+
|
|
20
|
+
def keyconfig_init_from_data(kc, keyconfig_data):
|
|
21
|
+
""" """
|
|
22
|
+
|
|
23
|
+
...
|
|
24
|
+
|
|
25
|
+
def keyconfig_merge(kc1, kc2):
|
|
26
|
+
""" """
|
|
27
|
+
|
|
28
|
+
...
|
|
29
|
+
|
|
30
|
+
def keymap_init_from_data(km, km_items, is_modal):
|
|
31
|
+
""" """
|
|
32
|
+
|
|
33
|
+
...
|
|
34
|
+
|
|
35
|
+
def kmi_args_as_data(kmi):
|
|
36
|
+
""" """
|
|
37
|
+
|
|
38
|
+
...
|
|
39
|
+
|
|
40
|
+
def repr_f32(f):
|
|
41
|
+
""" """
|
|
42
|
+
|
|
43
|
+
...
|
|
44
|
+
|
|
45
|
+
def round_float_32(f):
|
|
46
|
+
""" """
|
|
47
|
+
|
|
48
|
+
...
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
|
|
4
3
|
GenericType = typing.TypeVar("GenericType")
|
|
5
4
|
|
|
6
|
-
def keyconfig_data_oskey_from_ctrl(keyconfig_data_src, filter_fn):
|
|
7
|
-
|
|
5
|
+
def keyconfig_data_oskey_from_ctrl(keyconfig_data_src, filter_fn):
|
|
6
|
+
""" """
|
|
7
|
+
|
|
8
|
+
...
|
|
9
|
+
|
|
10
|
+
def keyconfig_data_oskey_from_ctrl_for_macos(keyconfig_data_src):
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
...
|
bl_math/__init__.pyi
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
|
|
4
3
|
GenericType = typing.TypeVar("GenericType")
|
|
5
4
|
|
|
6
5
|
def clamp(value: float, min: float = 0, max: float = 1) -> float:
|
|
7
|
-
"""Clamps the float value between minimum and maximum. To avoid
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
"""Clamps the float value between minimum and maximum. To avoid
|
|
7
|
+
confusion, any call must use either one or all three arguments.
|
|
8
|
+
|
|
9
|
+
:param value: The value to clamp.
|
|
10
|
+
:type value: float
|
|
11
|
+
:param min: The minimum value, defaults to 0.
|
|
12
|
+
:type min: float
|
|
13
|
+
:param max: The maximum value, defaults to 1.
|
|
14
|
+
:type max: float
|
|
15
|
+
:return: The clamped value.
|
|
16
|
+
:rtype: float
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
...
|
|
@@ -27,23 +27,22 @@ def lerp(from_value: float, to_value: float, factor: float) -> float:
|
|
|
27
27
|
:type to_value: float
|
|
28
28
|
:param factor: The interpolation value, normally in [0.0, 1.0].
|
|
29
29
|
:type factor: float
|
|
30
|
-
:rtype: float
|
|
31
30
|
:return: The interpolated value.
|
|
31
|
+
:rtype: float
|
|
32
32
|
"""
|
|
33
33
|
|
|
34
34
|
...
|
|
35
35
|
|
|
36
36
|
def smoothstep(from_value: float, to_value: float, value) -> float:
|
|
37
|
-
"""Performs smooth interpolation between 0 and 1 as value changes between from and to values.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
:return: The interpolated value in [0.0, 1.0].
|
|
37
|
+
"""Performs smooth interpolation between 0 and 1 as value changes between from and to values.
|
|
38
|
+
Outside the range the function returns the same value as the nearest edge.
|
|
39
|
+
|
|
40
|
+
:param from_value: The edge value where the result is 0.
|
|
41
|
+
:type from_value: float
|
|
42
|
+
:param to_value: The edge value where the result is 1.
|
|
43
|
+
:type to_value: float
|
|
44
|
+
:return: The interpolated value in [0.0, 1.0].
|
|
45
|
+
:rtype: float
|
|
47
46
|
"""
|
|
48
47
|
|
|
49
48
|
...
|