Skip to content

Memory leak of NoDefaultType in _typing #123448

Closed
@ZeroIntensity

Description

@ZeroIntensity

Bug report

Bug description:

Quick reproducer:

$ ./python -X showrefcount -c "import _typing"
[8 refs, 0 blocks]

The underlying leaked object is NoDefaultType. I think this was caused by gh-118897 (cc @JelleZijlstra).

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions