Skip to content

mypy error: Argument 1 to "fileConfig" has incompatible type "Optional[str]" #986

Description

@scratchmex

Describe the bug

start with alembic init migrations and you will get the error. Basically fileConfig expects an str not None. By default when alembic is called via the cli the parameter is filled with alembic.ini but in the class definition of Config by default is None

Expected behavior

To Reproduce
Please try to provide a Minimal, Complete, and Verifiable example, with the migration script and/or the SQLAlchemy tables or models involved.
See also Reporting Bugs on the website.

# Insert code here

Error

# Copy error here. Please include the full stack trace.

Versions.

  • OS:
  • Python:
  • Alembic: alembic 1.7.6
  • SQLAlchemy:
  • Database:
  • DBAPI:

Additional context

Have a nice day!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions