Skip to content

Intellisense missing items when using context managers #2240

Closed

Description

with open('log.log', 'a') as fs:
	fs.

Completion is missing write.

However it works when using open('log.log', 'a').write.

  • OS - Mac
  • Latest version of Language server https://pvsc.blob.core.windows.net/python-language-server/Python-Language-Server-osx-x64.0.1.18204.3.nupkg
  • Works when using Jedi.

See here:
fs

Activity

  1. added
    bug
    area-intellisense
    on Jul 24, 2018
  2. MikhailArkhipov commented on Aug 7, 2018

    @MikhailArkhipov

    Looks like scraped _IOBase does not include write while typeshed does.

  3. MikhailArkhipov commented on Aug 7, 2018

    @MikhailArkhipov
  4. added
    important
    and removed on Aug 9, 2018
  5. MikhailArkhipov commented on Aug 13, 2018

    @MikhailArkhipov
  6. locked as resolved and limited conversation to collaborators on Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-intellisensebugimportant

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions