Skip to content

TYP: np.lib.stride_tricks is not marked as being public #21183

@twoertwein

Description

@twoertwein

Describe the issue:

sliding_window_view is a public function, but it is inaccessible to type checkers.

Reproduce the code example:

import numpy as np

np.lib.stride_tricks.sliding_window_view

Error message:

pyright: "stride_tricks" is not a known member of module (reportGeneralTypeIssues)

NumPy/Python version information:

1.22.3 3.10.2 (v3.10.2:a58ebcc, Mar 10 2022, 19:36:59) [GCC 9.4.0]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions