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

Improve typing of django.db.backends.mysql.base.DatabaseWrapper attributes #2125

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JaeHyuckSa
Copy link
Contributor

I have made things!

I modified the Any value of the django.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

django-stubs/db/backends/mysql/base.pyi Outdated Show resolved Hide resolved
django-stubs/db/backends/mysql/base.pyi Outdated Show resolved Hide resolved
django-stubs/db/backends/mysql/base.pyi Outdated Show resolved Hide resolved
@intgr intgr changed the title Fix Any value for django.db.backends.mysql.base.DatabaseWrapper's arguments Improve typing of django.db.backends.mysql.base.DatabaseWrapper attributes May 6, 2024
@JaeHyuckSa JaeHyuckSa mentioned this pull request May 11, 2024
39 tasks
from .validation import DatabaseValidation

version: Any
django_conversions: Any
server_version_re: Any

class MySQLDatabase(Protocol): ...
Copy link
Member

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

Copy link
Contributor Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants