Skip to content

Conversation

@twoertwein
Copy link
Member

Most changes are in io/excel but also in files where pyright had one or two violates to get those files off the list.

pythonVersion = "3.10"
pythonVersion = "3.11"
typeCheckingMode = "basic"
useLibraryCodeForTypes = false
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To prevent pyright from analyzing non-py.typed libraries such as matplotlib

if is_iterator(keys):
keys = list(keys)
if is_iterator(objs):
objs = list(objs)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if should not be needed as objs was always a list at that point - let's see whether the tests agree.

@twoertwein twoertwein marked this pull request as ready for review August 5, 2023 12:30
@twoertwein twoertwein added the Typing type annotations, mypy/pyright type checking label Aug 5, 2023
Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but I'm not really familiar with the time-series related changes. Would be good to have another eye here @MarcoGorelli

@mroeschke mroeschke added this to the 2.1 milestone Aug 7, 2023
@mroeschke mroeschke merged commit 80753e2 into pandas-dev:main Aug 7, 2023
@mroeschke
Copy link
Member

Thanks @twoertwein

@twoertwein twoertwein deleted the typ branch August 9, 2023 15:08
mroeschke pushed a commit to mroeschke/pandas that referenced this pull request Aug 18, 2023
* TYP: enable reportGeneralTypeIssues for more files * fixes * Added some time-related annotations based on the tests from pandas-stubs * remove python version from second pyright config file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Typing type annotations, mypy/pyright type checking

3 participants