Skip to content

[red-knot] Panic on self-referential deferred annotation (call expression) #14767

@dhruvmanila

Description

@dhruvmanila

The following code panics:

from __future__ import annotations

def foo(a: foo()):
    pass

Or, in a test.pyi (stub) file without the import:

def foo(a: foo()):
    pass

This is resolved by #14629.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfuzzerSurfaced via fuzzing.tyMulti-file analysis & type inference

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions