Skip to content

The type<n> cannot be hinted properly in IDEs. #549

Open
@PyMarc2

Description

@PyMarc2

The type<n> cannot be hinted properly in IDEs.

e.g

import pyopencl as cl
import pyopencl.cltypes

N = 10
HOST_myArray = np.array([cl.cltypes.make_float4(1, 0, 0, 0)] * N, dtype=cl.cltypes.float4)

The make_float4 function and float4 types are not recognized. They are executed, but I think since they are not explicitly declared in cltypes.py, the ides have a hard time understanding

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions