Skip to content

Silent type failure #978

@tbenst

Description

@tbenst

I have a function as follows:

import numpy as np

file = str

def process_file(my_path: file) -> (List[np.ndarray]):
    return(['bad return'])

It appears that 'np.ndarray' is being interpreted as 'Any'. Why is that? The type is failing silently.

Thanks,
Tyler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions