Closed Yoric closed 4 days ago
Device
and VirtualDevice
are officially exported under pulser.devices
, so you can import them from there. BaseDevice
is an ABC and is purposefully not exported, as it is intended to be an internal class only. Why would you like to import it?
Mmmh... Pyright informs me that:
"Device" is not exported from module "pulser.devices"
Import from "pulser.devices._device_datacls" instead
Looking at the code, it seems that Pyright is wrong? Investigating.
Apologies for the noise. It seems to be a Pyright error.
I'd like to write some code that takes as argument a device. Currently, both
Device
andBaseDevice
are defined in_device_datacls
, which marks them as private. Is there any better way to do this? If not, could eitherDevice
orBaseDevice
be officially exported somewhere?