Skip to content

dict function-based initialization is rejectedΒ #100

@charliermarsh

Description

@charliermarsh

The following gives: No overload of bound method __init__ matches arguments

SESSION_OPTIONS: dict[str, Any] = dict(
    # Allow models to be read after transactions are closed
    expire_on_commit=False,
    # Do not allow implicit re-use of sessions after their context closes
    close_resets_only=False,
)

See: https://types.ruff.rs/30b74134-d2d1-42d5-8fa5-e22768dad640

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions