robotpy / robotpy-rev

RobotPy bindings for REV Robotics' REVLib
Other
8 stars 13 forks source link

Type stubs have bogus imports #37

Closed auscompgeek closed 2 years ago

auscompgeek commented 3 years ago

rev/_rev/__init__.pyi begins with:

import rev._rev
import typing
import AnalogMode
import ArbFFUnits
import CANAnalog
import CANDigitalInput
import CANEncoder
import CANPIDController
import CANSparkMax
import CANSparkMaxLowLevel
import ControlType
import EncoderType
import wpilib._wpilib
import wpilib.interfaces._interfaces

The "imports" of all the classes should not be there, and breaks autocomplete/Intellisense.

auscompgeek commented 3 years ago

I presume this is an instance of https://github.com/sizmailov/pybind11-stubgen/issues/36, but breaking Intellisense completely is a regression from last year.

auscompgeek commented 2 years ago

It looks like pybind11-stubgen 0.9 fixes this.