Skip to content

Using compiles leads to untyped decorator #239

Open
@kasium

Description

@kasium

Describe the bug
The compile decorator is not fully typed. Therefore mypy complains when using it

Expected behavior
Mypy doesn't complain

To Reproduce
Use compile as a decorator

Error

error: Untyped decorator makes function "foo" untyped  [misc]

Versions.

  • OS: Linux
  • Python: 3.7.1
  • SQLAlchemy: 1.4.41
  • mypy: 0.982
  • SQLAlchemy2-stubs: 0.0.2a29

I'm happy to give a PR a try

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmissing typesomething is missing from the types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions