Skip to content

Commit

Permalink
Update: Support slice for bpy_prop_array and bpy_prop_collection (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Road-hog123 authored Jun 4, 2024
1 parent 2151b27 commit 607c90c
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 6 deletions.
36 changes: 34 additions & 2 deletions src/mods/common/analyzer/append/bpy.types.mod.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,53 @@

.. method:: __getitem__(key)

:type key: int | str | slice
:type key: int | str
:mod-option arg key: skip-refine
:rtype: GenericType1
:mod-option rtype: skip-refine
:option function: overload

.. method:: __getitem__(key)

:type key: slice
:mod-option arg key: skip-refine
:rtype: tuple[GenericType1]
:mod-option rtype: skip-refine
:option function: overload

.. method:: __getitem__(key)

:type key: int | str | slice
:mod-option arg key: skip-refine
:rtype: GenericType1 | tuple[GenericType1]
:mod-option rtype: skip-refine

.. method:: __setitem__(key, value)

:type key: int | str
:mod-option arg key: skip-refine
:type value: GenericType1
:mod-option arg value: skip-refine
:option function: overload

.. method:: __setitem__(key, value)

:type key: slice
:mod-option arg key: skip-refine
:type value: tuple[GenericType1]
:mod-option arg value: skip-refine
:option function: overload

.. method:: __setitem__(key, value)

:type key: int | str | slice
:mod-option arg key: skip-refine
:type value: GenericType1 | tuple[GenericType1]
:mod-option arg value: skip-refine

.. method:: __delitem__(key)

:type key: int | str
:type key: int | str | slice
:mod-option arg key: skip-refine

.. method:: __iter__()
Expand Down
40 changes: 36 additions & 4 deletions src/mods/common/analyzer/new/bpy.types.mod.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,53 @@

.. method:: __getitem__(key)

:type key: int | str
:type key: int
:mod-option arg key: skip-refine
:rtype: GenericType1
:mod-option rtype: skip-refine
:option function: overload

.. method:: __getitem__(key)

:type key: slice
:mod-option arg key: skip-refine
:rtype: tuple[GenericType1]
:mod-option rtype: skip-refine
:option function: overload

.. method:: __getitem__(key)

:type key: int | slice
:mod-option arg key: skip-refine
:rtype: GenericType1 | tuple[GenericType1]
:mod-option rtype: skip-refine

.. method:: __setitem__(key, value)

:type key: int | str
:type key: int
:mod-option arg key: skip-refine
:type value: GenericType1
:mod-option arg value: skip-refine
:option function: overload

.. method:: __setitem__(key, value)

:type key: slice
:mod-option arg key: skip-refine
:type value: tuple[GenericType1]
:mod-option arg value: skip-refine
:option function: overload

.. method:: __setitem__(key, value)

:type key: int | slice
:mod-option arg key: skip-refine
:type value: GenericType1 | tuple[GenericType1]
:mod-option arg value: skip-refine

.. method:: __delitem__(key)

:type key: int | str
:type key: int | slice
:mod-option arg key: skip-refine

.. method:: __iter__()
Expand All @@ -60,4 +92,4 @@
.. method:: __len__()

:rtype: int
:mod-option rtype: skip-refine
:mod-option rtype: skip-refine

0 comments on commit 607c90c

Please sign in to comment.