-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
Improve typing of django.db.backends.mysql.base.DatabaseWrapper
attributes
#2125
base: master
Are you sure you want to change the base?
Conversation
Any
value for django.db.backends.mysql.base.DatabaseWrapper
's argumentsdjango.db.backends.mysql.base.DatabaseWrapper
attributes
from .validation import DatabaseValidation | ||
|
||
version: Any | ||
django_conversions: Any | ||
server_version_re: Any | ||
|
||
class MySQLDatabase(Protocol): ... |
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.
This protocol should have at least some attributes / methods
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.
I'm having a hard time figuring it out. I think I just need to add methods or attributes related to the connection, but is there anything else I can include?
I have made things!
I modified the
Any
value of thedjango.db.backends.mysql.base.DatabaseWrapper
's arguments .django.db.backends.mysql.base.DatabaseWrapper.data_types
django.db.backends.mysql.base.DatabaseWrapper.operators
django.db.backends.mysql.base.DatabaseWrapper.pattern_ops
django.db.backends.mysql.base.DatabaseWrapper.isolation_levels
django.db.backends.mysql.base.DatabaseWrapper.SchemaEditorClass
django.db.backends.mysql.base.DatabaseWrapper.isolation_level
django.db.backends.mysql.base.DatabaseWrapper.needs_rollback
Related issues