Skip to content

call-non-callable in not TYPE_CHECKING scope only on Python 3.14 #2891

@dlech

Description

@dlech

Summary

Here is a weird one...

I'm seeing a call-non-callable error in a block of code where TYPE_CHECKING is false. I would expect it to not be type checked because of that. And to make it more interesting, it only happens for Python 3.14. I don't see the error on earlier Python versions.

Reproduction: https://play.ty.dev/2e342426-a7a2-4629-a433-b2afea7a5b1c

Version

0.0.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions