From dc9645fb4c5e672c19510bc2781fd7674f4a2764 Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Mon, 4 Dec 2023 11:01:41 +0000 Subject: [PATCH] chore: run pre-commit --- src/awkward/_connect/numpy.py | 4 ++-- src/awkward/forms/bitmaskedform.py | 3 +-- src/awkward/forms/bytemaskedform.py | 3 +-- src/awkward/forms/indexedform.py | 3 +-- src/awkward/forms/indexedoptionform.py | 3 +-- src/awkward/forms/listform.py | 3 +-- src/awkward/forms/recordform.py | 1 - src/awkward/forms/regularform.py | 1 - src/awkward/forms/unionform.py | 3 +-- src/awkward/forms/unmaskedform.py | 1 - 10 files changed, 8 insertions(+), 17 deletions(-) diff --git a/src/awkward/_connect/numpy.py b/src/awkward/_connect/numpy.py index 7702047d24..519cc9d419 100644 --- a/src/awkward/_connect/numpy.py +++ b/src/awkward/_connect/numpy.py @@ -5,7 +5,7 @@ import collections import functools import inspect -from collections.abc import Iterable +from collections.abc import Iterable, Iterator, Mapping from itertools import chain import numpy @@ -26,7 +26,7 @@ from awkward._nplikes import to_nplike from awkward._parameters import parameters_intersect from awkward._regularize import is_non_string_like_iterable -from awkward._typing import Any, Iterator, Mapping +from awkward._typing import Any from awkward._util import Sentinel from awkward.contents.numpyarray import NumpyArray diff --git a/src/awkward/forms/bitmaskedform.py b/src/awkward/forms/bitmaskedform.py index b68a724b68..5fdcf94dc8 100644 --- a/src/awkward/forms/bitmaskedform.py +++ b/src/awkward/forms/bitmaskedform.py @@ -2,7 +2,7 @@ from __future__ import annotations -from collections.abc import Callable +from collections.abc import Callable, Iterator import awkward as ak from awkward._meta.bitmaskedmeta import BitMaskedMeta @@ -11,7 +11,6 @@ Any, DType, ImplementsReadOnlyProperty, - Iterator, Self, final, ) diff --git a/src/awkward/forms/bytemaskedform.py b/src/awkward/forms/bytemaskedform.py index 338058d4df..fb06daf108 100644 --- a/src/awkward/forms/bytemaskedform.py +++ b/src/awkward/forms/bytemaskedform.py @@ -2,7 +2,7 @@ from __future__ import annotations -from collections.abc import Callable +from collections.abc import Callable, Iterator import awkward as ak from awkward._meta.bytemaskedmeta import ByteMaskedMeta @@ -11,7 +11,6 @@ Any, DType, ImplementsReadOnlyProperty, - Iterator, Self, final, ) diff --git a/src/awkward/forms/indexedform.py b/src/awkward/forms/indexedform.py index a76b347a7d..3cc9892952 100644 --- a/src/awkward/forms/indexedform.py +++ b/src/awkward/forms/indexedform.py @@ -2,7 +2,7 @@ from __future__ import annotations -from collections.abc import Callable +from collections.abc import Callable, Iterator import awkward as ak from awkward._meta.indexedmeta import IndexedMeta @@ -12,7 +12,6 @@ Any, DType, ImplementsReadOnlyProperty, - Iterator, Self, final, ) diff --git a/src/awkward/forms/indexedoptionform.py b/src/awkward/forms/indexedoptionform.py index 3ad52de4b9..ebab0713ce 100644 --- a/src/awkward/forms/indexedoptionform.py +++ b/src/awkward/forms/indexedoptionform.py @@ -2,7 +2,7 @@ from __future__ import annotations -from collections.abc import Callable +from collections.abc import Callable, Iterator import awkward as ak from awkward._meta.indexedoptionmeta import IndexedOptionMeta @@ -12,7 +12,6 @@ Any, DType, ImplementsReadOnlyProperty, - Iterator, Self, final, ) diff --git a/src/awkward/forms/listform.py b/src/awkward/forms/listform.py index 4181f2f92a..1d1541fa96 100644 --- a/src/awkward/forms/listform.py +++ b/src/awkward/forms/listform.py @@ -2,7 +2,7 @@ from __future__ import annotations -from collections.abc import Callable +from collections.abc import Callable, Iterator import awkward as ak from awkward._meta.listmeta import ListMeta @@ -11,7 +11,6 @@ Any, DType, ImplementsReadOnlyProperty, - Iterator, Self, final, ) diff --git a/src/awkward/forms/recordform.py b/src/awkward/forms/recordform.py index 860be071cb..0cd8f9f4dd 100644 --- a/src/awkward/forms/recordform.py +++ b/src/awkward/forms/recordform.py @@ -11,7 +11,6 @@ Any, DType, ImplementsReadOnlyProperty, - Iterator, Self, final, ) diff --git a/src/awkward/forms/regularform.py b/src/awkward/forms/regularform.py index 5eeb30a595..9057804e5b 100644 --- a/src/awkward/forms/regularform.py +++ b/src/awkward/forms/regularform.py @@ -13,7 +13,6 @@ Any, DType, ImplementsReadOnlyProperty, - Iterator, Self, final, ) diff --git a/src/awkward/forms/unionform.py b/src/awkward/forms/unionform.py index 05b0eb7bde..aecc0889f7 100644 --- a/src/awkward/forms/unionform.py +++ b/src/awkward/forms/unionform.py @@ -2,7 +2,7 @@ from __future__ import annotations -from collections.abc import Callable, Iterable +from collections.abc import Callable, Iterable, Iterator from itertools import permutations import awkward as ak @@ -12,7 +12,6 @@ Any, DType, ImplementsReadOnlyProperty, - Iterator, Self, final, ) diff --git a/src/awkward/forms/unmaskedform.py b/src/awkward/forms/unmaskedform.py index 15ec3791a9..5a59c15222 100644 --- a/src/awkward/forms/unmaskedform.py +++ b/src/awkward/forms/unmaskedform.py @@ -12,7 +12,6 @@ Any, DType, ImplementsReadOnlyProperty, - Iterator, Self, final, )