Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE auto completion #79

Open
lazka opened this issue Jul 24, 2014 · 7 comments
Open

IDE auto completion #79

lazka opened this issue Jul 24, 2014 · 7 comments

Comments

@lazka
Copy link
Member

lazka commented Jul 24, 2014

Provide fake python packages for IDE auto completion: most of the logic is already there, so why not

Existing code: https://github.com/strycore/fakegir

@lazka lazka changed the title Provide fake python packages for IDE auto completion IDE auto completion Sep 16, 2014
@lazka lazka added the longterm label Jan 18, 2016
@roelandxyz
Copy link

Could this also be used to generate stubs for mypy and others?
If Jedi will support stubs someday (davidhalter/jedi#839), then this can also be used for auto completion.
Mypy has a generator for stubs: 'python3 -m mypy.stubgen'. Maybe this can be used?
Is has an option to use .rst docs, but I'm not sure how to use it for gi.

@lazka
Copy link
Member Author

lazka commented Dec 12, 2017

Definitely sounds interesting. I haven't worked with mypy yet besides some small experiments, but I'm planning to give it a go in quodlibet some time.

One question is how we would provide those stubs to users and how jedi/mypy could discover them. Does anything similar exist already?

@roelandxyz
Copy link

There is typeshed: https://github.com/python/typeshed
I think this is used by mypy/pycharm/pytype

@lazka
Copy link
Member Author

lazka commented Feb 16, 2018

I've opened pygobject/pycairo#99

my plan is to test things out with pycairo and then take it from there..

@bossjones
Copy link

Thank you for looking into this @lazka excited to see the possibilities. fakegir gets you most of the way there, but it is prone to issues and requires quite a bit of manual tweaking(Though I imagine any solution might require tweaking haha). If you need anyone to test this out, just ping me! Fyi, i'm on OS X, using vscode.

@kam193
Copy link

kam193 commented Mar 27, 2021

Hey, @lazka I'd like to ask if you still plan to support stubs, I'm looking forward to using them :)

@MrinmoyHaloi
Copy link

Hey, @lazka I'd like to ask if you still plan to support stubs, I'm looking forward to using them :)

https://github.com/pygobject/pygobject-stubs/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants