From 007a4bdcb049972961518c27ae0aa5117fb8751c Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Wed, 2 Oct 2024 14:36:41 -0700 Subject: [PATCH] Change import of Callable for typing (#523) --- 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