Skip to content

 Type "NaTType" is not hashable #827

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

Closed
randolf-scholz opened this issue Dec 15, 2023 · 1 comment · Fixed by #829
Closed

 Type "NaTType" is not hashable #827

randolf-scholz opened this issue Dec 15, 2023 · 1 comment · Fixed by #829

Comments

@randolf-scholz
Copy link
Contributor

import pandas as pd

s = {pd.NaT}

Please complete the following information:
pandas 2.1.4
pandas-stubs 2.1.1.230928

@twoertwein
Copy link
Member

Need to add def __hash__(self) -> int: ... here

and add a test

@twoertwein twoertwein mentioned this issue Dec 16, 2023
2 tasks
Dr-Irv pushed a commit that referenced this issue Dec 18, 2023
* mypy 1.7.1

* fix 827, towards 826
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants