-
-
Notifications
You must be signed in to change notification settings - Fork 144
ENH: Improve sql io api #229
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
Conversation
Testing this might not be worth it. |
I included some classes and their attributes as these are required for some of the modes. These classes are used in the docs as examples. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For tests, you could test the types by surrounding the tests with if TYPE_CHECKING
. So then pytest
won't execute them, but the type checking will still happen.
One other idea. Some of the methods have types that depend on |
Or maybe easier than worrying about |
I went with |
Add sqlalchemy Fix small issues in initial pass
Only issue is to add a typing test. You can do def test_sql_types() -> None:
df = # Some dataframe
if TYPE_CHECKING:
df.to_sql(# arguments)
# additional tests |
Close/reopen to force CI and see if loguru happens here too. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @bastage
assert_type()
to assert the type of any return value