Skip to content

Commit eea267a

Browse files
committed
Fix: Add missing special methods in bpy.types.bpy_struct and bpy.types.ContextTempOverride
1 parent 3104fd1 commit eea267a

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.. mod-type:: append
2+
3+
.. module:: bpy.types
4+
5+
.. class:: ContextTempOverride
6+
7+
.. method:: __enter__()
8+
9+
:rtype: typing_extensions.Self
10+
:mod-option rtype: skip-refine
11+
12+
.. method:: __exit__(exc_type, exc_val, exc_tb)
13+
14+
:type exc_type: type[BaseException] | None
15+
:mod-option arg exc_type: skip-refine
16+
:type exc_val: BaseException | None
17+
:mod-option arg exc_val: skip-refine

src/mods/common/analyzer/append/bpy.types.mod.rst

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@
199199

200200
.. class:: bpy_struct
201201

202+
:generic-types: _GenericType1
203+
202204
.. attribute:: bl_rna
203205

204206
:type: :class:`bpy.types.BlenderRNA`, (never none)
@@ -207,14 +209,14 @@
207209

208210
:type key: int | str
209211
:mod-option arg key: skip-refine
210-
:rtype: typing.Any
212+
:rtype: _GenericType1
211213
:mod-option rtype: skip-refine
212214

213215
.. method:: __setitem__(key, value)
214216

215217
:type key: int | str
216218
:mod-option arg key: skip-refine
217-
:type value: typing.Any
219+
:type value: _GenericType1
218220
:mod-option arg value: skip-refine
219221

220222
.. method:: __delitem__(key)
@@ -251,3 +253,17 @@
251253
:rtype: collections.abc.Iterator[:class:`Material` | None]
252254
:mod-option rtype: skip-refine
253255
:option function: overload
256+
257+
.. class:: ContextTempOverride
258+
259+
.. method:: __enter__()
260+
261+
:rtype: typing_extensions.Self
262+
:mod-option rtype: skip-refine
263+
264+
.. method:: __exit__(exc_type, exc_val, exc_tb)
265+
266+
:type exc_type: type[BaseException] | None
267+
:mod-option arg exc_type: skip-refine
268+
:type exc_val: BaseException | None
269+
:mod-option arg exc_val: skip-refine

0 commit comments

Comments
 (0)