fake-bge-module 20250312__py3-none-any.whl → 20260203__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.
- {animsys_refactor → _animsys_refactor}/__init__.pyi +7 -6
- {bl_console_utils → _bl_console_utils}/__init__.pyi +1 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +1 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +1 -13
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +1 -5
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +3 -13
- {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +1 -10
- {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +2 -0
- _bl_i18n_utils/bl_extract_messages/__init__.pyi +28 -0
- {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +2 -1
- {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +10 -7
- {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +53 -50
- _bl_i18n_utils/utils_cli/__init__.pyi +11 -0
- _bl_i18n_utils/utils_languages_menu/__init__.pyi +6 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +3 -2
- _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
- {bl_previews_utils → _bl_previews_utils}/__init__.pyi +1 -0
- _bl_previews_utils/bl_previews_render/__init__.pyi +14 -0
- {bl_rna_utils → _bl_rna_utils}/__init__.pyi +1 -0
- {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +3 -2
- {bl_text_utils → _bl_text_utils}/__init__.pyi +1 -0
- _bl_text_utils/external_editor/__init__.pyi +6 -0
- {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
- {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +2 -1
- _blendfile_header/__init__.pyi +48 -0
- _bpy_internal/__init__.pyi +5 -1
- _bpy_internal/addons/__init__.pyi +1 -0
- _bpy_internal/addons/cli/__init__.pyi +2 -1
- _bpy_internal/assets/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/blender_asset_library_openapi/__init__.pyi +13 -0
- _bpy_internal/disk_file_hash_service/__init__.pyi +19 -0
- _bpy_internal/disk_file_hash_service/backend_sqlite/__init__.pyi +48 -0
- _bpy_internal/disk_file_hash_service/hash_service/__init__.pyi +64 -0
- _bpy_internal/disk_file_hash_service/types/__init__.pyi +53 -0
- _bpy_internal/extensions/__init__.pyi +1 -0
- _bpy_internal/extensions/junction_module/__init__.pyi +8 -7
- _bpy_internal/extensions/stale_file_manager/__init__.pyi +9 -8
- _bpy_internal/extensions/wheel_manager/__init__.pyi +6 -5
- {bl_i18n_utils/utils_languages_menu → _bpy_internal/filesystem}/__init__.pyi +2 -2
- _bpy_internal/filesystem/locking/__init__.pyi +28 -0
- _bpy_internal/grease_pencil/__init__.pyi +1 -0
- _bpy_internal/grease_pencil/stroke/__init__.pyi +22 -6
- _bpy_internal/platform/__init__.pyi +5 -0
- _bpy_internal/platform/freedesktop/__init__.pyi +21 -0
- _bpy_internal/system_info/__init__.pyi +1 -0
- _bpy_internal/system_info/text_generate_runtime/__init__.pyi +2 -1
- _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +2 -1
- _bpy_internal/system_info/url_prefill_startup/__init__.pyi +3 -2
- {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +1 -0
- _bpy_types/__init__.pyi +1635 -0
- {console_python → _console_python}/__init__.pyi +8 -7
- _console_shell/__init__.pyi +10 -0
- {graphviz_export → _graphviz_export}/__init__.pyi +3 -2
- _keyingsets_utils/__init__.pyi +21 -0
- {rna_info → _rna_info}/__init__.pyi +32 -27
- {rna_xml → _rna_xml}/__init__.pyi +7 -6
- addon_utils/__init__.pyi +13 -25
- aud/__init__.pyi +133 -155
- bge/__init__.pyi +1 -0
- bge/app/__init__.pyi +1 -0
- bge/constraints/__init__.pyi +22 -51
- bge/types/__init__.pyi +618 -1913
- bge_extras/__init__.pyi +1 -0
- bge_extras/logger/__init__.pyi +4 -3
- bgui/__init__.pyi +1 -0
- bgui/frame/__init__.pyi +1 -0
- bgui/frame_button/__init__.pyi +1 -0
- bgui/image/__init__.pyi +1 -1
- bgui/image_button/__init__.pyi +1 -0
- bgui/label/__init__.pyi +1 -0
- bgui/list_box/__init__.pyi +1 -1
- bgui/progress_bar/__init__.pyi +2 -1
- bgui/system/__init__.pyi +3 -5
- bgui/text_block/__init__.pyi +1 -0
- bgui/text_input/__init__.pyi +9 -8
- bgui/theme/__init__.pyi +4 -3
- bgui/widget/__init__.pyi +5 -4
- bl_app_override/__init__.pyi +4 -3
- bl_app_override/helpers/__init__.pyi +3 -2
- bl_app_template_utils/__init__.pyi +5 -4
- bl_app_templates_system/Game_Engine/__init__.pyi +5 -4
- bl_app_templates_system/Storyboarding/__init__.pyi +11 -0
- bl_app_templates_system/__init__.pyi +2 -0
- bl_keymap_utils/__init__.pyi +1 -0
- bl_keymap_utils/io/__init__.pyi +10 -9
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -1
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +2 -1
- bl_keymap_utils/platform_helpers/__init__.pyi +3 -2
- bl_keymap_utils/versioning/__init__.pyi +2 -1
- bl_math/__init__.pyi +4 -13
- bl_operators/__init__.pyi +4 -2
- bl_operators/add_mesh_torus/__init__.pyi +9 -9
- bl_operators/anim/__init__.pyi +90 -62
- bl_operators/assets/__init__.pyi +14 -18
- bl_operators/bmesh/__init__.pyi +1 -0
- bl_operators/bmesh/find_adjacent/__init__.pyi +12 -9
- bl_operators/bone_selection_sets/__init__.pyi +34 -60
- bl_operators/clip/__init__.pyi +39 -57
- bl_operators/connect_to_output/__init__.pyi +20 -18
- bl_operators/console/__init__.pyi +17 -25
- bl_operators/constraint/__init__.pyi +15 -21
- bl_operators/copy_global_transform/__init__.pyi +261 -0
- bl_operators/file/__init__.pyi +13 -17
- bl_operators/freestyle/__init__.pyi +15 -21
- bl_operators/geometry_nodes/__init__.pyi +30 -36
- bl_operators/grease_pencil/__init__.pyi +5 -5
- bl_operators/image/__init__.pyi +14 -22
- bl_operators/image_as_planes/__init__.pyi +36 -42
- bl_operators/mesh/__init__.pyi +8 -53
- bl_operators/node/__init__.pyi +375 -92
- bl_operators/node_editor/__init__.pyi +1 -0
- bl_operators/node_editor/node_functions/__init__.pyi +10 -9
- bl_operators/object/__init__.pyi +57 -98
- bl_operators/object_align/__init__.pyi +8 -8
- bl_operators/object_quick_effects/__init__.pyi +15 -21
- bl_operators/object_randomize_transform/__init__.pyi +6 -6
- bl_operators/presets/__init__.pyi +46 -94
- bl_operators/rigidbody/__init__.pyi +12 -16
- bl_operators/screen_play_rendered_anim/__init__.pyi +5 -5
- bl_operators/sequencer/__init__.pyi +40 -54
- bl_operators/spreadsheet/__init__.pyi +7 -7
- bl_operators/userpref/__init__.pyi +69 -117
- bl_operators/uvcalc_follow_active/__init__.pyi +8 -8
- bl_operators/uvcalc_lightmap/__init__.pyi +12 -12
- bl_operators/uvcalc_transform/__init__.pyi +39 -28
- bl_operators/vertexpaint_dirt/__init__.pyi +7 -7
- bl_operators/view3d/__init__.pyi +31 -43
- bl_operators/wm/__init__.pyi +139 -231
- bl_operators/world/__init__.pyi +6 -6
- bl_ui/__init__.pyi +18 -17
- bl_ui/anim/__init__.pyi +5 -5
- bl_ui/asset_shelf/__init__.pyi +5 -5
- bl_ui/generic_ui_list/__init__.pyi +12 -26
- bl_ui/node_add_menu/__init__.pyi +281 -12
- bl_ui/node_add_menu_compositor/__init__.pyi +135 -91
- bl_ui/node_add_menu_geometry/__init__.pyi +407 -263
- bl_ui/node_add_menu_shader/__init__.pyi +67 -67
- bl_ui/node_add_menu_texture/__init__.pyi +25 -69
- bl_ui/properties_animviz/__init__.pyi +3 -2
- bl_ui/properties_collection/__init__.pyi +20 -30
- bl_ui/properties_constraint/__init__.pyi +228 -450
- bl_ui/properties_data_armature/__init__.pyi +45 -79
- bl_ui/properties_data_bone/__init__.pyi +33 -51
- bl_ui/properties_data_camera/__init__.pyi +43 -75
- bl_ui/properties_data_curve/__init__.pyi +42 -101
- bl_ui/properties_data_curves/__init__.pyi +21 -35
- bl_ui/properties_data_empty/__init__.pyi +8 -10
- bl_ui/properties_data_grease_pencil/__init__.pyi +49 -87
- bl_ui/properties_data_lattice/__init__.pyi +12 -18
- bl_ui/properties_data_light/__init__.pyi +28 -46
- bl_ui/properties_data_lightprobe/__init__.pyi +35 -61
- bl_ui/properties_data_mesh/__init__.pyi +73 -120
- bl_ui/properties_data_metaball/__init__.pyi +16 -26
- bl_ui/properties_data_modifier/__init__.pyi +34 -39
- bl_ui/properties_data_pointcloud/__init__.pyi +17 -27
- bl_ui/properties_data_shaderfx/__init__.pyi +4 -4
- bl_ui/properties_data_speaker/__init__.pyi +15 -25
- bl_ui/properties_data_volume/__init__.pyi +22 -38
- bl_ui/properties_freestyle/__init__.pyi +79 -127
- bl_ui/properties_game/__init__.pyi +88 -84
- bl_ui/properties_grease_pencil_common/__init__.pyi +33 -190
- bl_ui/properties_mask_common/__init__.pyi +33 -45
- bl_ui/properties_material/__init__.pyi +52 -111
- bl_ui/properties_material_gpencil/__init__.pyi +48 -68
- bl_ui/properties_object/__init__.pyi +123 -93
- bl_ui/properties_output/__init__.pyi +103 -81
- bl_ui/properties_paint_common/__init__.pyi +78 -59
- bl_ui/properties_particle/__init__.pyi +160 -262
- bl_ui/properties_physics_cloth/__init__.pyi +36 -62
- bl_ui/properties_physics_common/__init__.pyi +11 -11
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +81 -123
- bl_ui/properties_physics_field/__init__.pyi +35 -53
- bl_ui/properties_physics_fluid/__init__.pyi +106 -160
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +6 -6
- bl_ui/properties_physics_rigidbody/__init__.pyi +28 -42
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +44 -68
- bl_ui/properties_physics_softbody/__init__.pyi +38 -66
- bl_ui/properties_render/__init__.pyi +267 -259
- bl_ui/properties_scene/__init__.pyi +69 -72
- bl_ui/properties_strip/__init__.pyi +744 -0
- bl_ui/properties_strip_modifier/__init__.pyi +45 -0
- bl_ui/properties_texture/__init__.pyi +69 -122
- bl_ui/properties_view_layer/__init__.pyi +97 -51
- bl_ui/properties_workspace/__init__.pyi +12 -18
- bl_ui/properties_world/__init__.pyi +33 -53
- bl_ui/space_clip/__init__.pyi +231 -311
- bl_ui/space_console/__init__.pyi +14 -24
- bl_ui/space_dopesheet/__init__.pyi +193 -125
- bl_ui/space_filebrowser/__init__.pyi +107 -131
- bl_ui/space_graph/__init__.pyi +93 -80
- bl_ui/space_image/__init__.pyi +207 -291
- bl_ui/space_info/__init__.pyi +14 -24
- bl_ui/space_logic/__init__.pyi +14 -22
- bl_ui/space_nla/__init__.pyi +63 -69
- bl_ui/space_node/__init__.pyi +215 -154
- bl_ui/space_outliner/__init__.pyi +65 -61
- bl_ui/space_properties/__init__.pyi +41 -16
- bl_ui/space_sequencer/__init__.pyi +276 -979
- bl_ui/space_spreadsheet/__init__.pyi +27 -23
- bl_ui/space_statusbar/__init__.pyi +4 -4
- bl_ui/space_text/__init__.pyi +39 -73
- bl_ui/space_time/__init__.pyi +33 -78
- bl_ui/space_toolsystem_common/__init__.pyi +31 -28
- bl_ui/space_toolsystem_toolbar/__init__.pyi +67 -43
- bl_ui/space_topbar/__init__.pyi +68 -111
- bl_ui/space_userpref/__init__.pyi +310 -445
- bl_ui/space_view3d/__init__.pyi +667 -1122
- bl_ui/space_view3d_sidebar/__init__.pyi +127 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +237 -966
- bl_ui/utils/__init__.pyi +4 -3
- blend_render_info/__init__.pyi +4 -2
- blf/__init__.pyi +92 -59
- bmesh/__init__.pyi +4 -10
- bmesh/geometry/__init__.pyi +2 -4
- bmesh/ops/__init__.pyi +442 -815
- bmesh/types/__init__.pyi +377 -720
- bmesh/utils/__init__.pyi +20 -45
- bpy/__init__.pyi +2 -1
- bpy/app/__init__.pyi +96 -90
- bpy/app/handlers/__init__.pyi +24 -19
- bpy/app/icons/__init__.pyi +2 -7
- bpy/app/timers/__init__.pyi +5 -18
- bpy/app/translations/__init__.pyi +21 -35
- bpy/msgbus/__init__.pyi +20 -9
- bpy/ops/__init__.pyi +21 -3
- bpy/ops/action/__init__.pyi +121 -226
- bpy/ops/anim/__init__.pyi +204 -358
- bpy/ops/armature/__init__.pyi +129 -249
- bpy/ops/asset/__init__.pyi +82 -111
- bpy/ops/bge_bricknodes/__init__.pyi +61 -0
- bpy/ops/boid/__init__.pyi +44 -50
- bpy/ops/bricknodes/__init__.pyi +37 -0
- bpy/ops/brush/__init__.pyi +33 -120
- bpy/ops/buttons/__init__.pyi +27 -83
- bpy/ops/cachefile/__init__.pyi +16 -74
- bpy/ops/camera/__init__.pyi +3 -13
- bpy/ops/clip/__init__.pyi +278 -558
- bpy/ops/cloth/__init__.pyi +2 -6
- bpy/ops/collection/__init__.pyi +34 -44
- bpy/ops/console/__init__.pyi +70 -111
- bpy/ops/constraint/__init__.pyi +34 -102
- bpy/ops/curve/__init__.pyi +163 -315
- bpy/ops/curves/__init__.pyi +163 -189
- bpy/ops/cycles/__init__.pyi +8 -18
- bpy/ops/dpaint/__init__.pyi +21 -30
- bpy/ops/ed/__init__.pyi +59 -103
- bpy/ops/export_anim/__init__.pyi +4 -11
- bpy/ops/export_scene/__init__.pyi +29 -174
- bpy/ops/extensions/__init__.pyi +102 -194
- bpy/ops/file/__init__.pyi +166 -272
- bpy/ops/fluid/__init__.pyi +78 -86
- bpy/ops/font/__init__.pyi +73 -164
- bpy/ops/geometry/__init__.pyi +33 -144
- bpy/ops/gizmogroup/__init__.pyi +8 -14
- bpy/ops/gpencil/__init__.pyi +31 -58
- bpy/ops/graph/__init__.pyi +176 -411
- bpy/ops/grease_pencil/__init__.pyi +416 -639
- bpy/ops/image/__init__.pyi +148 -492
- bpy/ops/import_anim/__init__.pyi +5 -18
- bpy/ops/import_curve/__init__.pyi +4 -6
- bpy/ops/import_scene/__init__.pyi +22 -49
- bpy/ops/info/__init__.pyi +27 -43
- bpy/ops/lattice/__init__.pyi +26 -43
- bpy/ops/logic/__init__.pyi +49 -122
- bpy/ops/logic_nodes/__init__.pyi +461 -0
- bpy/ops/marker/__init__.pyi +24 -60
- bpy/ops/mask/__init__.pyi +118 -222
- bpy/ops/material/__init__.pyi +19 -18
- bpy/ops/mball/__init__.pyi +13 -39
- bpy/ops/mesh/__init__.pyi +409 -1264
- bpy/ops/nla/__init__.pyi +140 -232
- bpy/ops/node/__init__.pyi +1189 -807
- bpy/ops/object/__init__.pyi +806 -1659
- bpy/ops/outliner/__init__.pyi +284 -432
- bpy/ops/paint/__init__.pyi +189 -381
- bpy/ops/paintcurve/__init__.pyi +29 -44
- bpy/ops/palette/__init__.pyi +23 -34
- bpy/ops/particle/__init__.pyi +135 -201
- bpy/ops/pointcloud/__init__.pyi +23 -42
- bpy/ops/pose/__init__.pyi +195 -310
- bpy/ops/poselib/__init__.pyi +45 -73
- bpy/ops/preferences/__init__.pyi +89 -221
- bpy/ops/ptcache/__init__.pyi +32 -39
- bpy/ops/render/__init__.pyi +36 -83
- bpy/ops/rigidbody/__init__.pyi +47 -78
- bpy/ops/scene/__init__.pyi +169 -222
- bpy/ops/screen/__init__.pyi +146 -259
- bpy/ops/script/__init__.pyi +9 -15
- bpy/ops/sculpt/__init__.pyi +194 -354
- bpy/ops/sculpt_curves/__init__.pyi +21 -29
- bpy/ops/sequencer/__init__.pyi +586 -836
- bpy/ops/sound/__init__.pyi +25 -131
- bpy/ops/spreadsheet/__init__.pyi +34 -21
- bpy/ops/surface/__init__.pyi +7 -54
- bpy/ops/text/__init__.pyi +166 -281
- bpy/ops/text_editor/__init__.pyi +2 -6
- bpy/ops/texture/__init__.pyi +20 -22
- bpy/ops/transform/__init__.pyi +108 -445
- bpy/ops/ui/__init__.pyi +157 -219
- bpy/ops/uilist/__init__.pyi +4 -16
- bpy/ops/uv/__init__.pyi +291 -347
- bpy/ops/view2d/__init__.pyi +29 -88
- bpy/ops/view3d/__init__.pyi +238 -438
- bpy/ops/wm/__init__.pyi +651 -1510
- bpy/ops/workspace/__init__.pyi +42 -44
- bpy/ops/world/__init__.pyi +12 -13
- bpy/path/__init__.pyi +6 -37
- bpy/props/__init__.pyi +395 -259
- bpy/{_typing → stub_internal}/__init__.pyi +1 -0
- bpy/{_typing → stub_internal}/rna_enums/__init__.pyi +214 -114
- bpy/types/__init__.pyi +93286 -103826
- bpy/utils/__init__.pyi +46 -104
- bpy/utils/previews/__init__.pyi +7 -15
- bpy/utils/units/__init__.pyi +6 -15
- bpy_extras/__init__.pyi +1 -0
- bpy_extras/anim_utils/__init__.pyi +32 -23
- bpy_extras/asset_utils/__init__.pyi +1 -0
- bpy_extras/bmesh_utils/__init__.pyi +2 -2
- bpy_extras/id_map_utils/__init__.pyi +15 -6
- bpy_extras/image_utils/__init__.pyi +3 -11
- bpy_extras/io_utils/__init__.pyi +22 -38
- bpy_extras/keyconfig_utils/__init__.pyi +5 -4
- bpy_extras/mesh_utils/__init__.pyi +3 -14
- bpy_extras/node_shader_utils/__init__.pyi +63 -70
- bpy_extras/node_utils/__init__.pyi +4 -3
- bpy_extras/object_utils/__init__.pyi +6 -19
- bpy_extras/view3d_utils/__init__.pyi +1 -18
- bpy_extras/wm_utils/__init__.pyi +1 -0
- bpy_extras/wm_utils/progress_report/__init__.pyi +12 -11
- {fake_bge_module-20250312.dist-info → fake_bge_module-20260203.dist-info}/METADATA +9 -3
- fake_bge_module-20260203.dist-info/RECORD +414 -0
- {fake_bge_module-20250312.dist-info → fake_bge_module-20260203.dist-info}/WHEEL +1 -1
- {fake_bge_module-20250312.dist-info → fake_bge_module-20260203.dist-info}/top_level.txt +16 -16
- freestyle/__init__.pyi +1 -0
- freestyle/chainingiterators/__init__.pyi +41 -60
- freestyle/functions/__init__.pyi +56 -194
- freestyle/predicates/__init__.pyi +11 -61
- freestyle/shaders/__init__.pyi +95 -156
- freestyle/types/__init__.pyi +306 -941
- freestyle/utils/ContextFunctions/__init__.pyi +4 -24
- freestyle/utils/__init__.pyi +46 -36
- gpu/__init__.pyi +84 -5
- gpu/capabilities/__init__.pyi +1 -21
- gpu/matrix/__init__.pyi +16 -24
- gpu/platform/__init__.pyi +3 -7
- gpu/select/__init__.pyi +2 -1
- gpu/shader/__init__.pyi +43 -9
- gpu/state/__init__.pyi +66 -44
- gpu/texture/__init__.pyi +4 -5
- gpu/types/__init__.pyi +216 -216
- gpu_extras/__init__.pyi +1 -0
- gpu_extras/batch/__init__.pyi +2 -5
- gpu_extras/presets/__init__.pyi +9 -10
- idprop/__init__.pyi +17 -0
- idprop/types/__init__.pyi +18 -17
- imbuf/__init__.pyi +13 -9
- imbuf/types/__init__.pyi +10 -23
- keyingsets_builtins/__init__.pyi +51 -93
- mathutils/__init__.pyi +296 -2255
- mathutils/bvhtree/__init__.pyi +24 -30
- mathutils/geometry/__init__.pyi +83 -132
- mathutils/interpolate/__init__.pyi +7 -5
- mathutils/kdtree/__init__.pyi +5 -14
- mathutils/noise/__init__.pyi +62 -106
- nodeitems_builtins/__init__.pyi +5 -4
- nodeitems_utils/__init__.pyi +10 -9
- rna_keymap_ui/__init__.pyi +7 -6
- rna_prop_ui/__init__.pyi +14 -13
- _bpy_internal/freedesktop/__init__.pyi +0 -20
- bgl/__init__.pyi +0 -4235
- bl_i18n_utils/bl_extract_messages/__init__.pyi +0 -24
- bl_i18n_utils/utils_cli/__init__.pyi +0 -10
- bl_previews_utils/bl_previews_render/__init__.pyi +0 -11
- bl_text_utils/external_editor/__init__.pyi +0 -5
- bpy_types/__init__.pyi +0 -29
- console_shell/__init__.pyi +0 -9
- fake_bge_module-20250312.dist-info/RECORD +0 -395
- keyingsets_utils/__init__.pyi +0 -18
- {animsys_refactor → _animsys_refactor}/py.typed +0 -0
- {bgl → _bl_console_utils}/py.typed +0 -0
- {bl_console_utils → _bl_i18n_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_previews_utils}/py.typed +0 -0
- {bl_previews_utils → _bl_rna_utils}/py.typed +0 -0
- {bl_rna_utils → _bl_text_utils}/py.typed +0 -0
- {bl_text_utils → _bl_ui_utils}/py.typed +0 -0
- {bl_ui_utils → _blendfile_header}/py.typed +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
- {bpy_types → _bpy_types}/py.typed +0 -0
- {console_python → _console_python}/py.typed +0 -0
- {console_shell → _console_shell}/py.typed +0 -0
- {graphviz_export → _graphviz_export}/py.typed +0 -0
- {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
- {rna_info → _rna_info}/py.typed +0 -0
- {rna_xml → _rna_xml}/py.typed +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
|
+
import numpy.typing as npt
|
|
4
5
|
|
|
5
6
|
class DataPathBuilder:
|
|
6
7
|
"""Dummy class used to parse fcurve and driver data paths."""
|
|
7
8
|
|
|
8
9
|
data_path: typing.Any
|
|
9
10
|
|
|
10
|
-
def resolve(self, real_base, rna_update_from_map, fcurve, log):
|
|
11
|
+
def resolve(self, real_base, rna_update_from_map, fcurve, log) -> None:
|
|
11
12
|
"""Return (attribute, value) pairs.
|
|
12
13
|
|
|
13
14
|
:param real_base:
|
|
@@ -16,8 +17,8 @@ class DataPathBuilder:
|
|
|
16
17
|
:param log:
|
|
17
18
|
"""
|
|
18
19
|
|
|
19
|
-
def anim_data_actions(anim_data): ...
|
|
20
|
-
def classes_recursive(base_type, clss=None): ...
|
|
21
|
-
def find_path_new(id_data, data_path, rna_update_from_map, fcurve, log): ...
|
|
22
|
-
def id_iter(): ...
|
|
23
|
-
def update_data_paths(rna_update, log=None): ...
|
|
20
|
+
def anim_data_actions(anim_data) -> None: ...
|
|
21
|
+
def classes_recursive(base_type, clss=None) -> None: ...
|
|
22
|
+
def find_path_new(id_data, data_path, rna_update_from_map, fcurve, log) -> None: ...
|
|
23
|
+
def id_iter() -> None: ...
|
|
24
|
+
def update_data_paths(rna_update, log=None) -> None: ...
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
|
+
import numpy.typing as npt
|
|
4
5
|
|
|
5
6
|
def complete(
|
|
6
7
|
line: str, cursor: int, namespace: dict[str, typing.Any]
|
|
@@ -8,13 +9,9 @@ def complete(
|
|
|
8
9
|
"""Complete callable with call-tip.
|
|
9
10
|
|
|
10
11
|
:param line: incomplete text line
|
|
11
|
-
:type line: str
|
|
12
12
|
:param cursor: current character position
|
|
13
|
-
:type cursor: int
|
|
14
13
|
:param namespace: namespace
|
|
15
|
-
:type namespace: dict[str, typing.Any]
|
|
16
14
|
:return: (matches, world, scrollback)
|
|
17
|
-
:rtype: tuple[str, str, str]
|
|
18
15
|
"""
|
|
19
16
|
|
|
20
17
|
def get_argspec(
|
|
@@ -23,36 +20,27 @@ def get_argspec(
|
|
|
23
20
|
"""Get argument specifications.
|
|
24
21
|
|
|
25
22
|
:param strip_self: strip self from argspec
|
|
26
|
-
:type strip_self: bool
|
|
27
23
|
:param doc: doc string of func (optional)
|
|
28
|
-
:type doc: str | None
|
|
29
24
|
:param source: source code of func (optional)
|
|
30
|
-
:type source: str | None
|
|
31
25
|
:return: argument specification
|
|
32
|
-
:rtype: str
|
|
33
26
|
"""
|
|
34
27
|
|
|
35
28
|
def get_doc(obj) -> str:
|
|
36
29
|
"""Get the doc string or comments for an object.
|
|
37
30
|
|
|
38
31
|
:return: doc string
|
|
39
|
-
:rtype: str
|
|
40
32
|
"""
|
|
41
33
|
|
|
42
34
|
def reduce_newlines(text: str) -> str:
|
|
43
35
|
"""Reduces multiple newlines to a single newline.
|
|
44
36
|
|
|
45
37
|
:param text: text with multiple newlines
|
|
46
|
-
:type text: str
|
|
47
38
|
:return: text with single newlines
|
|
48
|
-
:rtype: str
|
|
49
39
|
"""
|
|
50
40
|
|
|
51
41
|
def reduce_spaces(text: str) -> str:
|
|
52
42
|
"""Reduces multiple white-spaces to a single space.
|
|
53
43
|
|
|
54
44
|
:param text: text with multiple spaces
|
|
55
|
-
:type text: str
|
|
56
45
|
:return: text with single spaces
|
|
57
|
-
:rtype: str
|
|
58
46
|
"""
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
|
+
import numpy.typing as npt
|
|
4
5
|
|
|
5
6
|
def complete(line: str) -> list[str]:
|
|
6
7
|
"""Returns a list containing the completion possibilities for an import line.
|
|
@@ -9,9 +10,7 @@ def complete(line: str) -> list[str]:
|
|
|
9
10
|
|
|
10
11
|
import xml.d
|
|
11
12
|
from xml.dom import
|
|
12
|
-
:type line: str
|
|
13
13
|
:return: list of completion possibilities
|
|
14
|
-
:rtype: list[str]
|
|
15
14
|
"""
|
|
16
15
|
|
|
17
16
|
def get_root_modules() -> list:
|
|
@@ -19,7 +18,6 @@ def get_root_modules() -> list:
|
|
|
19
18
|
folders of the python-path.
|
|
20
19
|
|
|
21
20
|
:return: modules
|
|
22
|
-
:rtype: list
|
|
23
21
|
"""
|
|
24
22
|
|
|
25
23
|
def module_list(path: str) -> list:
|
|
@@ -27,7 +25,5 @@ def module_list(path: str) -> list:
|
|
|
27
25
|
the given folder.
|
|
28
26
|
|
|
29
27
|
:param path: folder path
|
|
30
|
-
:type path: str
|
|
31
28
|
:return: modules
|
|
32
|
-
:rtype: list
|
|
33
29
|
"""
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
|
+
import numpy.typing as npt
|
|
4
5
|
|
|
5
6
|
def complete(word: str, namespace: dict, *, private: bool = True) -> list[str]:
|
|
6
7
|
"""Complete word within a namespace with the standard rlcompleter
|
|
7
8
|
module. Also supports index or key access [].
|
|
8
9
|
|
|
9
10
|
:param word: word to be completed
|
|
10
|
-
:type word: str
|
|
11
11
|
:param namespace: namespace
|
|
12
|
-
:type namespace: dict
|
|
13
12
|
:param private: whether private attribute/methods should be returned
|
|
14
|
-
:type private: bool
|
|
15
13
|
:return: completion matches
|
|
16
|
-
:rtype: list[str]
|
|
17
14
|
"""
|
|
18
15
|
|
|
19
16
|
def complete_indices(
|
|
@@ -22,29 +19,22 @@ def complete_indices(
|
|
|
22
19
|
"""Complete a list or dictionary with its indices:
|
|
23
20
|
|
|
24
21
|
:param word: word to be completed
|
|
25
|
-
:type word: str
|
|
26
22
|
:param namespace: namespace
|
|
27
|
-
:type namespace: dict
|
|
28
23
|
:param obj: object evaluated from base
|
|
29
24
|
:param base: sub-string which can be evaluated into an object.
|
|
30
|
-
:type base: str | None
|
|
31
25
|
:return: completion matches
|
|
32
|
-
:rtype: list[str]
|
|
33
26
|
"""
|
|
34
27
|
|
|
35
28
|
def complete_names(word: str, namespace: dict[str, typing.Any]) -> list[str]:
|
|
36
29
|
"""Complete variable names or attributes
|
|
37
30
|
|
|
38
31
|
:param word: word to be completed
|
|
39
|
-
:type word: str
|
|
40
32
|
:param namespace: namespace
|
|
41
|
-
:type namespace: dict[str, typing.Any]
|
|
42
33
|
:return: completion matches
|
|
43
|
-
:rtype: list[str]
|
|
44
34
|
"""
|
|
45
35
|
|
|
46
|
-
def is_dict(obj):
|
|
36
|
+
def is_dict(obj) -> None:
|
|
47
37
|
"""Returns whether obj is a dictionary"""
|
|
48
38
|
|
|
49
|
-
def is_struct_seq(obj):
|
|
39
|
+
def is_struct_seq(obj) -> None:
|
|
50
40
|
"""Returns whether obj is a structured sequence subclass: sys.float_info"""
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
|
+
import numpy.typing as npt
|
|
4
5
|
|
|
5
6
|
def complete(
|
|
6
7
|
line: str, cursor: int, namespace: dict, private: bool
|
|
@@ -8,15 +9,10 @@ def complete(
|
|
|
8
9
|
"""Returns a list of possible completions:
|
|
9
10
|
|
|
10
11
|
:param line: incomplete text line
|
|
11
|
-
:type line: str
|
|
12
12
|
:param cursor: current character position
|
|
13
|
-
:type cursor: int
|
|
14
13
|
:param namespace: namespace
|
|
15
|
-
:type namespace: dict
|
|
16
14
|
:param private: whether private variables should be listed
|
|
17
|
-
:type private: bool
|
|
18
15
|
:return: list of completions, word
|
|
19
|
-
:rtype: tuple[list[str], str]
|
|
20
16
|
"""
|
|
21
17
|
|
|
22
18
|
def expand(
|
|
@@ -26,13 +22,8 @@ def expand(
|
|
|
26
22
|
e.g. when Ctrl+Space is clicked.
|
|
27
23
|
|
|
28
24
|
:param line: incomplete text line
|
|
29
|
-
:type line: str
|
|
30
25
|
:param cursor: current character position
|
|
31
|
-
:type cursor: int
|
|
32
26
|
:param namespace: namespace
|
|
33
|
-
:type namespace: dict[str, typing.Any]
|
|
34
27
|
:param private: whether private variables should be listed
|
|
35
|
-
:type private: bool
|
|
36
28
|
:return: current expanded line, updated cursor position and scrollback
|
|
37
|
-
:rtype: int | str
|
|
38
29
|
"""
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
|
+
import numpy.typing as npt
|
|
4
5
|
from . import bl_extract_messages as bl_extract_messages
|
|
5
6
|
from . import merge_po as merge_po
|
|
6
7
|
from . import settings as settings
|
|
@@ -8,3 +9,4 @@ from . import utils as utils
|
|
|
8
9
|
from . import utils_cli as utils_cli
|
|
9
10
|
from . import utils_languages_menu as utils_languages_menu
|
|
10
11
|
from . import utils_rtl as utils_rtl
|
|
12
|
+
from . import utils_spell_check as utils_spell_check
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
import collections.abc
|
|
3
|
+
import typing_extensions
|
|
4
|
+
import numpy.typing as npt
|
|
5
|
+
|
|
6
|
+
def check(check_ctxt, msgs, key, msgsrc, settings) -> None:
|
|
7
|
+
"""Performs a set of checks over the given key (context, message)..."""
|
|
8
|
+
|
|
9
|
+
def dump_addon_bl_info(msgs, reports, module, settings) -> None: ...
|
|
10
|
+
def dump_addon_messages(addon_module_name, do_checks, settings) -> None: ...
|
|
11
|
+
def dump_asset_messages(msgs, reports, settings) -> None: ...
|
|
12
|
+
def dump_extension_metadata(msgs, reports, settings) -> None: ...
|
|
13
|
+
def dump_messages(do_messages, do_checks, settings) -> None: ...
|
|
14
|
+
def dump_ocio_config(msgs, reports, settings) -> None: ...
|
|
15
|
+
def dump_preset_messages(msgs, reports, settings) -> None: ...
|
|
16
|
+
def dump_py_messages(msgs, reports, addons, settings, addons_only=False) -> None: ...
|
|
17
|
+
def dump_py_messages_from_files(msgs, reports, files, settings) -> None: ...
|
|
18
|
+
def dump_rna_messages(msgs, reports, settings, verbose=False) -> None:
|
|
19
|
+
"""Dump into messages dict all RNA-defined UI messages (labels en tooltips)."""
|
|
20
|
+
|
|
21
|
+
def dump_src_messages(msgs, reports, settings) -> None: ...
|
|
22
|
+
def dump_template_messages(msgs, reports, settings) -> None: ...
|
|
23
|
+
def init_spell_check(settings, lang="en_US") -> None: ...
|
|
24
|
+
def main() -> None: ...
|
|
25
|
+
def print_info(reports, pot) -> None: ...
|
|
26
|
+
def process_msg(
|
|
27
|
+
msgs, msgctxt, msgid, msgsrc, reports, check_ctxt, settings
|
|
28
|
+
) -> None: ...
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
|
+
import numpy.typing as npt
|
|
4
5
|
|
|
5
6
|
class I18nSettings:
|
|
6
7
|
"""Class allowing persistence of our settings!
|
|
7
|
-
Saved in
|
|
8
|
+
Saved in JSON format, so settings should be JSONable objects!
|
|
8
9
|
"""
|
|
9
10
|
|
|
10
11
|
BLENDER_I18N_PO_DIR: typing.Any
|
|
@@ -16,30 +17,32 @@ class I18nSettings:
|
|
|
16
17
|
TEMPLATES_DIR: typing.Any
|
|
17
18
|
WORK_DIR: typing.Any
|
|
18
19
|
|
|
19
|
-
def from_dict(self, mapping):
|
|
20
|
+
def from_dict(self, mapping) -> None:
|
|
20
21
|
"""
|
|
21
22
|
|
|
22
23
|
:param mapping:
|
|
23
24
|
"""
|
|
24
25
|
|
|
25
|
-
def from_json(self, string):
|
|
26
|
+
def from_json(self, string) -> None:
|
|
26
27
|
"""
|
|
27
28
|
|
|
28
29
|
:param string:
|
|
29
30
|
"""
|
|
30
31
|
|
|
31
|
-
def load(self, fname, reset=False):
|
|
32
|
+
def load(self, fname, reset=False) -> None:
|
|
32
33
|
"""
|
|
33
34
|
|
|
34
35
|
:param fname:
|
|
35
36
|
:param reset:
|
|
36
37
|
"""
|
|
37
38
|
|
|
38
|
-
def save(self, fname):
|
|
39
|
+
def save(self, fname) -> None:
|
|
39
40
|
"""
|
|
40
41
|
|
|
41
42
|
:param fname:
|
|
42
43
|
"""
|
|
43
44
|
|
|
44
|
-
def to_dict(self): ...
|
|
45
|
-
def to_json(self): ...
|
|
45
|
+
def to_dict(self) -> None: ...
|
|
46
|
+
def to_json(self) -> None: ...
|
|
47
|
+
|
|
48
|
+
class PyGettextKeyword: ...
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
|
+
import numpy.typing as npt
|
|
4
5
|
|
|
5
6
|
class I18n:
|
|
6
7
|
"""Internal representation of a whole translation set."""
|
|
@@ -10,7 +11,7 @@ class I18n:
|
|
|
10
11
|
writers: typing.Any
|
|
11
12
|
|
|
12
13
|
@classmethod
|
|
13
|
-
def check_py_module_has_translations(cls, src, settings=None):
|
|
14
|
+
def check_py_module_has_translations(cls, src, settings=None) -> None:
|
|
14
15
|
"""Check whether a given src (a py module, either a directory or a py file) has some i18n translation data,
|
|
15
16
|
and returns a tuple (src_file, translations_tuple) if yes, else (None, None).
|
|
16
17
|
|
|
@@ -18,13 +19,13 @@ class I18n:
|
|
|
18
19
|
:param settings:
|
|
19
20
|
"""
|
|
20
21
|
|
|
21
|
-
def escape(self, do_all=False):
|
|
22
|
+
def escape(self, do_all=False) -> None:
|
|
22
23
|
"""
|
|
23
24
|
|
|
24
25
|
:param do_all:
|
|
25
26
|
"""
|
|
26
27
|
|
|
27
|
-
def parse(self, kind, src, langs=set()):
|
|
28
|
+
def parse(self, kind, src, langs=set()) -> None:
|
|
28
29
|
"""
|
|
29
30
|
|
|
30
31
|
:param kind:
|
|
@@ -32,14 +33,14 @@ class I18n:
|
|
|
32
33
|
:param langs:
|
|
33
34
|
"""
|
|
34
35
|
|
|
35
|
-
def parse_from_po(self, src, langs=set()):
|
|
36
|
+
def parse_from_po(self, src, langs=set()) -> None:
|
|
36
37
|
"""
|
|
37
38
|
|
|
38
39
|
:param src:
|
|
39
40
|
:param langs:
|
|
40
41
|
"""
|
|
41
42
|
|
|
42
|
-
def parse_from_py(self, src, langs=set()):
|
|
43
|
+
def parse_from_py(self, src, langs=set()) -> None:
|
|
43
44
|
"""src must be a valid path, either a py file or a module directory (in which case all py files inside it
|
|
44
45
|
will be checked, first file matching will win!).
|
|
45
46
|
if langs set is void, all languages found are loaded.
|
|
@@ -48,35 +49,35 @@ class I18n:
|
|
|
48
49
|
:param langs:
|
|
49
50
|
"""
|
|
50
51
|
|
|
51
|
-
def print_stats(self, prefix="", print_msgs=True):
|
|
52
|
+
def print_stats(self, prefix="", print_msgs=True) -> None:
|
|
52
53
|
"""Print out some stats about an I18n object.
|
|
53
|
-
If print_msgs is True, it will also print all its translations
|
|
54
|
+
If print_msgs is True, it will also print all its translations stats.
|
|
54
55
|
|
|
55
56
|
:param prefix:
|
|
56
57
|
:param print_msgs:
|
|
57
58
|
"""
|
|
58
59
|
|
|
59
|
-
def unescape(self, do_all=True):
|
|
60
|
+
def unescape(self, do_all=True) -> None:
|
|
60
61
|
"""
|
|
61
62
|
|
|
62
63
|
:param do_all:
|
|
63
64
|
"""
|
|
64
65
|
|
|
65
|
-
def update_info(self): ...
|
|
66
|
-
def write(self, kind, langs=set()):
|
|
66
|
+
def update_info(self) -> None: ...
|
|
67
|
+
def write(self, kind, langs=set()) -> None:
|
|
67
68
|
"""
|
|
68
69
|
|
|
69
70
|
:param kind:
|
|
70
71
|
:param langs:
|
|
71
72
|
"""
|
|
72
73
|
|
|
73
|
-
def write_to_po(self, langs=set()):
|
|
74
|
+
def write_to_po(self, langs=set()) -> None:
|
|
74
75
|
"""
|
|
75
76
|
|
|
76
77
|
:param langs:
|
|
77
78
|
"""
|
|
78
79
|
|
|
79
|
-
def write_to_py(self, langs=set()):
|
|
80
|
+
def write_to_py(self, langs=set()) -> None:
|
|
80
81
|
"""
|
|
81
82
|
|
|
82
83
|
:param langs:
|
|
@@ -98,35 +99,35 @@ class I18nMessage:
|
|
|
98
99
|
settings: typing.Any
|
|
99
100
|
sources: typing.Any
|
|
100
101
|
|
|
101
|
-
def copy(self): ...
|
|
102
|
+
def copy(self) -> None: ...
|
|
102
103
|
@classmethod
|
|
103
|
-
def do_escape(cls, txt):
|
|
104
|
+
def do_escape(cls, txt) -> None:
|
|
104
105
|
"""Replace some chars by their escaped versions!
|
|
105
106
|
|
|
106
107
|
:param txt:
|
|
107
108
|
"""
|
|
108
109
|
|
|
109
110
|
@classmethod
|
|
110
|
-
def do_unescape(cls, txt):
|
|
111
|
+
def do_unescape(cls, txt) -> None:
|
|
111
112
|
"""Replace escaped chars by real ones!
|
|
112
113
|
|
|
113
114
|
:param txt:
|
|
114
115
|
"""
|
|
115
116
|
|
|
116
|
-
def escape(self, do_all=False):
|
|
117
|
+
def escape(self, do_all=False) -> None:
|
|
117
118
|
"""
|
|
118
119
|
|
|
119
120
|
:param do_all:
|
|
120
121
|
"""
|
|
121
122
|
|
|
122
|
-
def normalize(self, max_len=80):
|
|
123
|
+
def normalize(self, max_len=80) -> None:
|
|
123
124
|
"""Normalize this message, call this before exporting it...
|
|
124
125
|
Currently normalize msgctxt, msgid and msgstr lines to given max_len (if below 1, make them single line).
|
|
125
126
|
|
|
126
127
|
:param max_len:
|
|
127
128
|
"""
|
|
128
129
|
|
|
129
|
-
def unescape(self, do_all=True):
|
|
130
|
+
def unescape(self, do_all=True) -> None:
|
|
130
131
|
"""
|
|
131
132
|
|
|
132
133
|
:param do_all:
|
|
@@ -138,7 +139,7 @@ class I18nMessages:
|
|
|
138
139
|
parsers: typing.Any
|
|
139
140
|
writers: typing.Any
|
|
140
141
|
|
|
141
|
-
def check(self, fix=False):
|
|
142
|
+
def check(self, fix=False) -> None:
|
|
142
143
|
"""Check consistency between messages and their keys!
|
|
143
144
|
Check messages using format stuff are consistent between msgid and msgstr!
|
|
144
145
|
If fix is True, tries to fix the issues.
|
|
@@ -147,16 +148,16 @@ class I18nMessages:
|
|
|
147
148
|
:param fix:
|
|
148
149
|
"""
|
|
149
150
|
|
|
150
|
-
def clean_commented(self): ...
|
|
151
|
+
def clean_commented(self) -> None: ...
|
|
151
152
|
@classmethod
|
|
152
|
-
def cleanup_callback(cls, lng, settings):
|
|
153
|
+
def cleanup_callback(cls, lng, settings) -> None:
|
|
153
154
|
"""Cleanup a single PO file (specified by a filepath).Callback usable in a context where Blender specific modules (like bpy) are not available.
|
|
154
155
|
|
|
155
156
|
:param lng:
|
|
156
157
|
:param settings:
|
|
157
158
|
"""
|
|
158
159
|
|
|
159
|
-
def escape(self, do_all=False):
|
|
160
|
+
def escape(self, do_all=False) -> None:
|
|
160
161
|
"""
|
|
161
162
|
|
|
162
163
|
:param do_all:
|
|
@@ -164,7 +165,7 @@ class I18nMessages:
|
|
|
164
165
|
|
|
165
166
|
def find_best_messages_matches(
|
|
166
167
|
self, msgs, msgmap, rna_ctxt, rna_struct_name, rna_prop_name, rna_enum_name
|
|
167
|
-
):
|
|
168
|
+
) -> None:
|
|
168
169
|
"""
|
|
169
170
|
|
|
170
171
|
:param msgs:
|
|
@@ -184,7 +185,7 @@ class I18nMessages:
|
|
|
184
185
|
bl_time,
|
|
185
186
|
default_copyright=True,
|
|
186
187
|
settings=None,
|
|
187
|
-
):
|
|
188
|
+
) -> None:
|
|
188
189
|
"""Generate an empty I18nMessages object (only header is present!).
|
|
189
190
|
|
|
190
191
|
:param uid:
|
|
@@ -195,26 +196,26 @@ class I18nMessages:
|
|
|
195
196
|
:param settings:
|
|
196
197
|
"""
|
|
197
198
|
|
|
198
|
-
def invalidate_reverse_cache(self, rebuild_now=False):
|
|
199
|
+
def invalidate_reverse_cache(self, rebuild_now=False) -> None:
|
|
199
200
|
"""Invalidate the reverse cache used by find_best_messages_matches.
|
|
200
201
|
|
|
201
202
|
:param rebuild_now:
|
|
202
203
|
"""
|
|
203
204
|
|
|
204
|
-
def merge(self, msgs, replace=False):
|
|
205
|
+
def merge(self, msgs, replace=False) -> None:
|
|
205
206
|
"""
|
|
206
207
|
|
|
207
208
|
:param msgs:
|
|
208
209
|
:param replace:
|
|
209
210
|
"""
|
|
210
211
|
|
|
211
|
-
def normalize(self, max_len=80):
|
|
212
|
+
def normalize(self, max_len=80) -> None:
|
|
212
213
|
"""
|
|
213
214
|
|
|
214
215
|
:param max_len:
|
|
215
216
|
"""
|
|
216
217
|
|
|
217
|
-
def parse(self, kind, key, src):
|
|
218
|
+
def parse(self, kind, key, src) -> None:
|
|
218
219
|
"""
|
|
219
220
|
|
|
220
221
|
:param kind:
|
|
@@ -222,14 +223,16 @@ class I18nMessages:
|
|
|
222
223
|
:param src:
|
|
223
224
|
"""
|
|
224
225
|
|
|
225
|
-
def parse_messages_from_po(self, src, key=None):
|
|
226
|
+
def parse_messages_from_po(self, src, key=None) -> None:
|
|
226
227
|
"""
|
|
227
228
|
|
|
228
229
|
:param src:
|
|
229
230
|
:param key:
|
|
230
231
|
"""
|
|
231
232
|
|
|
232
|
-
def print_info(
|
|
233
|
+
def print_info(
|
|
234
|
+
self, prefix="", output=None, print_stats=True, print_errors=True
|
|
235
|
+
) -> None:
|
|
233
236
|
"""Print out some info about an I18nMessages object.
|
|
234
237
|
|
|
235
238
|
:param prefix:
|
|
@@ -238,14 +241,14 @@ class I18nMessages:
|
|
|
238
241
|
:param print_errors:
|
|
239
242
|
"""
|
|
240
243
|
|
|
241
|
-
def rtl_process(self): ...
|
|
242
|
-
def unescape(self, do_all=True):
|
|
244
|
+
def rtl_process(self) -> None: ...
|
|
245
|
+
def unescape(self, do_all=True) -> None:
|
|
243
246
|
"""
|
|
244
247
|
|
|
245
248
|
:param do_all:
|
|
246
249
|
"""
|
|
247
250
|
|
|
248
|
-
def update(self, ref, use_similar=None, keep_old_commented=True):
|
|
251
|
+
def update(self, ref, use_similar=None, keep_old_commented=True) -> None:
|
|
249
252
|
"""Update this I18nMessage with the ref one. Translations from ref are never used. Source comments from ref
|
|
250
253
|
completely replace current ones. If use_similar is not 0.0, it will try to match new messages in ref with an
|
|
251
254
|
existing one. Messages no more found in ref will be marked as commented if keep_old_commented is True,
|
|
@@ -257,7 +260,7 @@ class I18nMessages:
|
|
|
257
260
|
"""
|
|
258
261
|
|
|
259
262
|
@classmethod
|
|
260
|
-
def update_from_pot_callback(cls, pot, lng, settings):
|
|
263
|
+
def update_from_pot_callback(cls, pot, lng, settings) -> None:
|
|
261
264
|
"""Update or create a single PO file (specified by a filepath) from the given POT I18nMessages data.Callback usable in a context where Blender specific modules (like bpy) are not available.
|
|
262
265
|
|
|
263
266
|
:param pot:
|
|
@@ -265,61 +268,61 @@ class I18nMessages:
|
|
|
265
268
|
:param settings:
|
|
266
269
|
"""
|
|
267
270
|
|
|
268
|
-
def update_info(self): ...
|
|
271
|
+
def update_info(self) -> None: ...
|
|
269
272
|
@classmethod
|
|
270
|
-
def update_to_blender_repo_callback(cls, lng, settings):
|
|
271
|
-
"""Cleanup and write a single PO file (specified by a filepath) into the relevant Blender source
|
|
273
|
+
def update_to_blender_repo_callback(cls, lng, settings) -> None:
|
|
274
|
+
"""Cleanup and write a single PO file (specified by a filepath) into the relevant Blender source compact PO file.Callback usable in a context where Blender specific modules (like bpy) are not available.
|
|
272
275
|
|
|
273
276
|
:param lng:
|
|
274
277
|
:param settings:
|
|
275
278
|
"""
|
|
276
279
|
|
|
277
|
-
def write(self, kind, dest):
|
|
280
|
+
def write(self, kind, dest) -> None:
|
|
278
281
|
"""
|
|
279
282
|
|
|
280
283
|
:param kind:
|
|
281
284
|
:param dest:
|
|
282
285
|
"""
|
|
283
286
|
|
|
284
|
-
def write_messages_to_mo(self, fname):
|
|
287
|
+
def write_messages_to_mo(self, fname) -> None:
|
|
285
288
|
"""Write messages in fname mo file.
|
|
286
289
|
|
|
287
290
|
:param fname:
|
|
288
291
|
"""
|
|
289
292
|
|
|
290
|
-
def write_messages_to_po(self, fname, compact=False):
|
|
293
|
+
def write_messages_to_po(self, fname, compact=False) -> None:
|
|
291
294
|
"""Write messages in fname po file.
|
|
292
295
|
|
|
293
296
|
:param fname:
|
|
294
297
|
:param compact:
|
|
295
298
|
"""
|
|
296
299
|
|
|
297
|
-
def enable_addons(addons=None, support=None, disable=False, check_only=False):
|
|
298
|
-
"""Enable (or disable) addons based either on a set of names, or a set of
|
|
300
|
+
def enable_addons(addons=None, support=None, disable=False, check_only=False) -> None:
|
|
301
|
+
"""Enable (or disable) addons based either on a set of names, or a set of support types.
|
|
299
302
|
Returns the list of all affected addons (as fake modules)!
|
|
300
303
|
If "check_only" is set, no addon will be enabled nor disabled.
|
|
301
304
|
|
|
302
305
|
"""
|
|
303
306
|
|
|
304
|
-
def find_best_isocode_matches(uid, iso_codes):
|
|
307
|
+
def find_best_isocode_matches(uid, iso_codes) -> None:
|
|
305
308
|
"""Return an ordered tuple of elements in iso_codes that can match the given uid, from most similar to lesser ones."""
|
|
306
309
|
|
|
307
|
-
def get_best_similar(data): ...
|
|
308
|
-
def get_po_files_from_dir(root_dir, langs=set()):
|
|
310
|
+
def get_best_similar(data) -> None: ...
|
|
311
|
+
def get_po_files_from_dir(root_dir, langs=set()) -> None:
|
|
309
312
|
"""Yield tuples (uid, po_path) of translations for each po file found in the given directory, which should be either
|
|
310
|
-
a directory containing po files using language
|
|
313
|
+
a directory containing po files using language uids as names (e.g. fr.po, es_ES.po, etc.), or
|
|
311
314
|
a directory containing directories which names are language uids, and containing po files of the same names.
|
|
312
315
|
|
|
313
316
|
"""
|
|
314
317
|
|
|
315
|
-
def is_valid_po_path(path): ...
|
|
316
|
-
def list_po_dir(root_path, settings):
|
|
318
|
+
def is_valid_po_path(path) -> None: ...
|
|
319
|
+
def list_po_dir(root_path, settings) -> None:
|
|
317
320
|
"""Generator. List given directory (expecting one sub-directory per languages)
|
|
318
321
|
and return all files matching languages listed in settings.Yield tuples (can_use, uid, num_id, name, isocode, po_path)Note that po_path may not actually exists.
|
|
319
322
|
|
|
320
323
|
"""
|
|
321
324
|
|
|
322
|
-
def locale_explode(locale):
|
|
325
|
+
def locale_explode(locale) -> None:
|
|
323
326
|
"""Copies behavior of BLT_lang_locale_explode, keep them in sync."""
|
|
324
327
|
|
|
325
|
-
def locale_match(loc1, loc2): ...
|
|
328
|
+
def locale_match(loc1, loc2) -> None: ...
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
import collections.abc
|
|
3
|
+
import typing_extensions
|
|
4
|
+
import numpy.typing as npt
|
|
5
|
+
|
|
6
|
+
def cleanup_po(args, settings) -> None: ...
|
|
7
|
+
def language_menu(args, settings) -> None: ...
|
|
8
|
+
def main() -> None: ...
|
|
9
|
+
def rtl_process_po(args, settings) -> None: ...
|
|
10
|
+
def strip_po(args, settings) -> None: ...
|
|
11
|
+
def update_po(args, settings) -> None: ...
|