OpenSimulationInterface / open-simulation-interface

A generic interface for the environmental perception of automated driving functions in virtual scenarios.
Other
267 stars 125 forks source link

IDE not recognizing OSI classes in python #820

Open ClemensLinnhoff opened 4 months ago

ClemensLinnhoff commented 4 months ago

Describe the bug

When including modules from the python implementation of OSI, my IDE (pyCharm) does not recognize the classes. Therefore, there is no autocomplete when working with it.

image

Describe how to reproduce the bug

Steps to reproduce the behavior:

  1. Import a module from OSI into a python script
  2. Try to use autocomplete in your IDE

Describe the expected behavior

I would expect the IDE to find the package and support autocomplete. This could be accomplished by generating pyi files during the python setup using protoc: https://stackoverflow.com/a/74575817

Describe the OS you are using