Skip to content

Stack overflow with Callable and __new__ #288

@correctmost

Description

@correctmost

zuban crashes when checking this fuzzed code:

from collections.abc import Callable

class C:
    def __new__(a: Callable[[], None]):
        pass
thread 'main' has overflowed its stack
fatal runtime error: stack overflow, aborting

Version info

3963508

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions