Skip to content

Add some stubs for pycolmap #2664

@Parskatt

Description

@Parskatt

Is your feature request related to a problem? Please describe.
Python language servers / Intellisense / Whatever you want to call it, are not able to read from the .so python module, hence they cannot provide hints/autocompletes. This means you either have to call something like help(...) or look manually in the binding code for what is available.

Describe the solution you'd like
The standard solution is to provide python stub files (.pyi) that describe the interface in pseudo python code. As far as I'm aware this needs to be done manually. Basically, go through the source code for the python module and translate it to an interface. Actually someone should probably have figured out to automate this translation.

I could do this as a PR if it sounds ok. Otherwise I'll probably just do it on a fork so I don't have to look up the api constantly...

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions