You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AnyType is used by functions that accept any Blender pointer type, since it only extends bpy_struct, PyCharm's type checking will complain whenever we're trying to normally use functions that have an AnyType parameter.
If AnyType is strictly a leftover from before bpy.type.bpy_struct was accessible then it could be replaced in all cases where it's used.
Another possibility might be inserting AnyType into the class hierarchy such that all pointer types (all bpy_struct types?) become subclasses of AnyType.
The text was updated successfully, but these errors were encountered:
Another alternative: since AnyType declares no attributes, functions or properties (other than bl_rna), the class definitions for AnyType could be replaced with an alias of AnyType = bpy.types.bpy_struct. This would remove it as a distinct class from the documentation however, which might not be the best idea for documentation purposes.
AnyType is used by functions that accept any Blender pointer type, since it only extends bpy_struct, PyCharm's type checking will complain whenever we're trying to normally use functions that have an AnyType parameter.
If AnyType is strictly a leftover from before bpy.type.bpy_struct was accessible then it could be replaced in all cases where it's used.
Another possibility might be inserting AnyType into the class hierarchy such that all pointer types (all bpy_struct types?) become subclasses of AnyType.
The text was updated successfully, but these errors were encountered: