Skip to content
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

Drop python 3.7 support and Typecheck with Pandas stubs #326

Merged
merged 3 commits into from
Sep 21, 2022

Conversation

jenshnielsen
Copy link
Collaborator

This adds pandas types and fixes two issues required to typecheck with them.

One is not potentially passing None to a method that does not take None
The other is a workaround for not being able to infer a precise type for a dataframe converted to dict

@jenshnielsen
Copy link
Collaborator Author

Pandas 1.4 only supports python 3.8 and up. Perhaps we should drop support for 3.7 or just drop type checking with 3.7 ?

@astafan8
Copy link
Collaborator

drop support for 3.7

vote for this

@jenshnielsen
Copy link
Collaborator Author

@wpfff How do you feel about dropping support for 3.7

The main motivation is that Pandas, numpy, xarray etc have already dropped it making it more annoying to support it here. QCoDeS will drop support soon

@wpfff
Copy link
Contributor

wpfff commented Sep 20, 2022

Yep, we should drop it. Haven't seen anything below 3.9 in use in a while myself...

@jenshnielsen jenshnielsen changed the title Typecheck with Pandas stubs Drop python 3.7 support and Typecheck with Pandas stubs Sep 20, 2022
@jenshnielsen
Copy link
Collaborator Author

@astafan8 Dropped python 3.7 and make it ready for review

@jenshnielsen jenshnielsen merged commit a17b024 into toolsforexperiments:master Sep 21, 2022
@jenshnielsen jenshnielsen deleted the pandas_stubs branch September 21, 2022 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants