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.

CLEAN: Reconcile types in pandas._typing.py and pandas-stubs._typing.pyi

See original GitHub issue

There are some inconsistencies in types in pandas._typing.py and pandas-stubs._typing.pyi . These should be reconciled.

In addition, types that are only in the stubs should probably be private with a leading underscore _

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Dr-Irvcommented, Aug 5, 2022

stubtest will use whichever version of pandas that is installed. Currently, that is 1.4.x. I think pandas has nightly builds, we could install that in pyproject.toml instead of 1.4.x: but then we might get some “troubles” with pytests, more deprecation warnings (before 1.5) and breaking changes (after 1.5 is released).

Maybe you could just figure out a way to run stubtest (but not mypy, pytest, etc.) against the current version in pandas/main so we can start reconciling the types. There is good typing work in pandas that we can pull over to the stubs without making the stubs incorrect for 1.4.x

0reactions
twoertweincommented, Aug 5, 2022

Could have a step ala “remove pandas 1.4x. and install pandas nightly” with an appropriate rollback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VirtusLab/pandas-stubs - GitHub
Pandas type stubs. Helps you type-check your code. - GitHub - VirtusLab/pandas-stubs: Pandas type stubs. Helps you type-check your code.
Read more >
pandas-stubs — How we enhanced pandas with type ...
At VirtusLab we created our own pandas-stubs library, which enhances pandas with type information that's necessary for maintaining a high ...
Read more >
pandas-stubs - PyPI
These are public type stubs for pandas, following the convention of providing stubs in a separate package, as specified in PEP 561. The...
Read more >
mypy missed incompatible type in case of a pandas.DataFrame
I've tripped on mypy not complaining about incompatible types when DataFrame is involved. It's likely me being new to ...
Read more >
Simple index - piwheels
... openerp-analytic-user-function clean-panda alibabacloud-ecs20160314 ... types-aiobotocore-datasync python-pexels typed-config-aws-sources asgi-cors ...
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