diff --git a/dpnp/dpnp_iface_manipulation.py b/dpnp/dpnp_iface_manipulation.py index 8d3050da4e0..1f9a6b49d72 100644 --- a/dpnp/dpnp_iface_manipulation.py +++ b/dpnp/dpnp_iface_manipulation.py @@ -3860,7 +3860,8 @@ def split(ary, indices_or_sections, axis=0): raise IndexError("Axis exceeds ndim") try: - len(indices_or_sections) + # check if `indices_or_sections` is a sequence of indices + _ = len(indices_or_sections) except TypeError: if ary.shape[axis] % indices_or_sections != 0: raise ValueError( diff --git a/pyproject.toml b/pyproject.toml index 0cf3e972187..6685351e2e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ requires = [ ] [project] -authors = [{name = "Intel Corporation"}] +authors = [{ name = "Intel Corporation" }] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", @@ -69,9 +69,9 @@ keywords = [ ] license = "BSD-3-Clause" license-files = ["LICENSE.txt"] -maintainers = [{name = "Intel Corporation"}] +maintainers = [{ name = "Intel Corporation" }] name = "dpnp" -readme = {file = "README.md", content-type = "text/markdown"} +readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.10,<3.15" [project.optional-dependencies]