Skip to content

table_sql method missing from BaseDatabaseSchemaEditor  #554

@rvinzent

Description

@rvinzent

Bug report

What's wrong

Overriding a DatabaseSchemaEditor and calling super().table_sql(...) gives the following error

error: "table_sql" undefined in superclass

How is that should be

table_sql is a method of BaseDatabaseSchemaEditor defined here

The annotation should be

def table_sql(self, model: Type[Model]) -> Tuple[str, List[Any]]]: ...

System information

  • OS: MacOS
  • python version: 3.9
  • django version: 3.1
  • mypy version: 0.790
  • django-stubs version: 1.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions