Skip to content

TYP: misc annotations #57606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 26, 2024
Merged

TYP: misc annotations #57606

merged 6 commits into from
Feb 26, 2024

Conversation

twoertwein
Copy link
Member

to pass more of the pandas-stubs tests.

IndexLabel,
ReadCsvBuffer,
Self,
StorageOptions,
Unpack,
UsecolsArgType,
)

class _read_shared(TypedDict, Generic[HashableT], total=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.

Moved in TYPE_CHECKING block - older python versions do not allow a TypedDict to inherit form non-TypedDict base classes (Generic)

@twoertwein twoertwein marked this pull request as ready for review February 25, 2024 04:15
@mroeschke mroeschke added the Typing type annotations, mypy/pyright type checking label Feb 26, 2024
@mroeschke mroeschke added this to the 3.0 milestone Feb 26, 2024
@mroeschke mroeschke merged commit 6de3717 into pandas-dev:main Feb 26, 2024
@mroeschke
Copy link
Member

Thanks @twoertwein

@twoertwein twoertwein deleted the misc branch April 7, 2024 10:59
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
* TYP: misc changes

* fix runtime

* pre-commit

* a few more

* stubtest

* NoReturn for <3.11
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants