Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki committed Sep 11, 2024
1 parent 04d6c60 commit 4bf4c53
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/npe2/manifest/contributions/_readers.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from functools import wraps
from typing import List, Optional
from typing import TYPE_CHECKING, List, Optional

from npe2._command_registry import CommandRegistry
from npe2._pydantic_compat import Extra, Field
from npe2.manifest.utils import Executable, v2_to_v1
from npe2.types import ReaderFunction

if TYPE_CHECKING:
from npe2._command_registry import CommandRegistry


class ReaderContribution(Executable[Optional[ReaderFunction]]):
"""Contribute a file reader.
Expand Down Expand Up @@ -41,7 +43,7 @@ def exec(
self,
args: tuple = (),
kwargs: Optional[dict] = None,
_registry: Optional[CommandRegistry] = None,
_registry: Optional["CommandRegistry"] = None,
):
"""
We are trying to simplify internal npe2 logic to always deal with a
Expand Down

0 comments on commit 4bf4c53

Please sign in to comment.