question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ENH: Bring over Microsoft typing stubs as starting point for typing public API

See original GitHub issue

From discussion on pandas typing meeting on January 7, 2022 (notes at https://docs.google.com/document/d/1tGbTiYORHiSPgVMXawiweGJlBw5dOkVJLY-licoBmBU/)

Follow up to discussion here: #28142 (comment)

Goal is to copy over the pandas stubs created by Microsoft that are shipped with Visual Studio Code: https://github.com/microsoft/python-type-stubs/tree/main/pandas

Unclear whether this should be done a file at a time, or all at once. Need to resolve conflicts between the pandas source and those stubs. Possible to publish partial stubs by indicating they are partial within a py.typed file. @gramster (main author of the Microsoft stubs)may be willing to help (nudge, nudge)

Ideally, the testing framework for the stubs should be created first. See #45252

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Dr-Irvcommented, Jun 3, 2022

Have created the https://github.com/pandas-dev/pandas-stubs project from MS stubs.

0reactions
gramstercommented, Jan 21, 2022

It looks like I should just be able to open these tests in VS Code with Pylance and see any issues. I am doing that and I don’t see the very first issue, but I’m also using latest stubs from the repo and it looks like you have made some changes, Irv. So I will look at the things that are still being squiggled.

Of course, that means I am assuming that these test snippets should be clean and free of warnings; is that a correct assumption?

Read more comments on GitHub >

github_iconTop Results From Across the Web

PEP 561 – Distributing and Packaging Type Information
PEP 484 has a brief section on distributing typing information. ... Stubs or Python source manually put in the beginning of the path....
Read more >
Using stubs to isolate parts of your app for testing
For an overview and quick start guide to Fakes, see Isolate code under test with Microsoft Fakes. To use stubs, you have to...
Read more >
Authentication Types for Wireless Devices - Cisco
Open Authentication to the Access Point ... Changing the service-type attribute to login-only ensures that Microsoft IAS servers recognize reauthentication ...
Read more >
The OpenXR Specification - Khronos Registry
Issues with and bug reports on the OpenXR Specification and the API ... or points to a valid structure that also contains type...
Read more >
Consolidated JDK 8 Release Notes - Oracle
Version VM Version API Reports 25.x (JDK-8285776, not public) ... binding tokens generated are of the type "tls-server-end-point" as defined in RFC 5929....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found