Skip to content

metaclasses and functions returning classes #5

Open
@flying-sheep

Description

@flying-sheep

python is a dynamic language. functions may return classes, and instantiating metaclasses also yields classes.

since we can’t know what a function returns, VariablesInFunctionCheck should not yield an error if a variable name matches MIXEDCASE_REGEX, e.g.:

from sqlalchemy.orm import sessionmaker
Session = sessionmaker(bind=engine)

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