GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Missing Intellisense Autocompletions for urllib · Issue #4511 · python/typeshed

Missing Intellisense Autocompletions for urllib #4511

New issue
Copy link
New issue
Copy link
Closed
Closed
Missing Intellisense Autocompletions for urllib#4511
Copy link

Description

@sharoncxu
sharoncxu
opened on Sep 3, 2020
Issue body actions

Currently using Intellisense + Pylance Extension in VS Code.

In the following code, the autocompletion doesn’t show getcode() as an option when writing “f.” in the last line. (The completion works fine for “urlib.” and “urllib.request.”)

`import urllib.request
import urllib.parse

f = urllib.request.urlopen("https://www.microsoft.com")

f.getcode()`

Activity

  1. hauntsaninja commented on Sep 3, 2020

    @hauntsaninja
    hauntsaninja
    on Sep 3, 2020
    Collaborator
    More actions

    getcode exists in typeshed. The issue is that the return type of urlopen is currently typed as Any.

    There's more context here, for when that return type was changed:
    #3026
    #3045

    I'm going to close, since those changes were intentional about what they were doing.

  2. hauntsaninja
    closed this as completedon Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.