Hi Holger, PyCharm has a page on type hinting that can be found here: http://www.jetbrains.com/pycharm/webhelp/type-hinting-in-pycharm.html
My latest comment on that page (posted by fonzi337) provides further information on the auto-completion issue we are encountering. I hope this helps, Alfonso On Mon, Jan 6, 2014, at 06:24 AM, holger krekel wrote: > Hi Michelle, > > On Fri, Dec 27, 2013 at 18:44 -0500, Michelle Chartier wrote: > > Hey all, > > > > I recently got the community edition PyCharm IDE and so far like a lot of > > things about it (especially the ability to run pytest tests from within > > it). HOWEVER, I am having a problem with auto-completion on fixture > > functions (I realize this may not be the place to ask this question but I > > was hoping someone had some info that could help me or point me somewhere > > :) ) > > > > So, the problem: in my test function I am using a fixture object as an > > input argument and want to be able to see all available functions with > > autocompletion. To see autocompletion in Aptana, I imported the necessary > > fixture to the test module where my test function resides (the fixture is > > imported to a conftest in a package I have defined) > > > > ---------------------------------- > > > > Example: > > > > #this test module resides in mypackag.mysubpackage.mysubsubpackage > > > > from mypackage.mysubpackage.conftest import myobj > > > > def test_mytest(myobj): > > myobj. (<- this is where the autocompletion should show up?) > > Strictly speaking the import of "myobj" is unrelated to passing the > "myobj" parameter to the test function, as far as the IDE is concerned. > I don't know why/how Aptana manages to show something. Probably it uses > some heuristic? > > I don't know how PyCharm finds completions internally but maybe we could > think about helping it somehow. If you can point to specific information > on how PyCharms does completion, let us know. > > best, > holger > > > ---------------------------------- > > > > > > In Aptana myobj shows all the available functions with autocompletion as > > expected but in PyCharm (with the exact same code/folders/folder structure) > > it says "No suggestions." > > > > Anyone have a similar problem or know of a solution? (I would prefer to > > stick with PyCharm... :) ) > > > > Thanks! > > Michelle > > > _______________________________________________ > > Pytest-dev mailing list > > [email protected] > > https://mail.python.org/mailman/listinfo/pytest-dev > > _______________________________________________ > Pytest-dev mailing list > [email protected] > https://mail.python.org/mailman/listinfo/pytest-dev _______________________________________________ Pytest-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pytest-dev
