From 4a2ad03141ea9898b167e69671205eada9189bd6 Mon Sep 17 00:00:00 2001 From: rly Date: Tue, 1 Oct 2024 23:19:22 -0700 Subject: [PATCH] Change import of Callable for typing --- src/nwbinspector/_configuration.py | 2 +- src/nwbinspector/_registration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nwbinspector/_configuration.py b/src/nwbinspector/_configuration.py index efa62f82b..7352d2c41 100644 --- a/src/nwbinspector/_configuration.py +++ b/src/nwbinspector/_configuration.py @@ -1,13 +1,13 @@ """Primary functions for inspecting NWBFiles.""" import json +from collections.abc import Callable from pathlib import Path from types import FunctionType from typing import Optional, Union import jsonschema import yaml -from typing_extensions import Callable from ._registration import Importance, available_checks diff --git a/src/nwbinspector/_registration.py b/src/nwbinspector/_registration.py index f43e5caf6..418069f62 100644 --- a/src/nwbinspector/_registration.py +++ b/src/nwbinspector/_registration.py @@ -1,5 +1,6 @@ """Primary decorator used on a check function to add it to the registry and automatically parse its output.""" +from collections.abc import Callable from functools import wraps from typing import List, Optional, Union @@ -8,7 +9,6 @@ from pynwb import NWBFile from pynwb.ecephys import Device, ElectrodeGroup from pynwb.file import Subject -from typing_extensions import Callable from ._types import Importance, InspectorMessage, Severity