Skip to content

[BUG] Unreachable condition in interprtation of SET_FUNCTION_ATTRIBUTE on Python 3.14 #879

Description

@gmarkall

Reported by @shwina

Minimal reproducer:

import numpy as np
import numba.cuda

def outer(idx: np.int64) -> np.uint8:
    def inner(x: np.int64) -> np.uint8:   # ← nested fn with annotations
        return np.uint8(x % 5)
    return inner(idx)

sig = numba.types.uint8(numba.types.int64)
numba.cuda.compile(outer, sig=sig, output="ltoir")

This seems to have something to do with a nested function with annotations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions