Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change import of Callable for typing #523

Merged
merged 2 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/nwbinspector/_configuration.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/nwbinspector/_registration.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
Loading