Skip to content

Commit

Permalink
Version 3.4.1, fix missing dependencies (nornir-automation#867)
Browse files Browse the repository at this point in the history
With contributions by @nemith
  • Loading branch information
ktbyers authored Sep 22, 2023
1 parent 325c8ca commit d8c547c
Show file tree
Hide file tree
Showing 6 changed files with 523 additions and 364 deletions.
4 changes: 1 addition & 3 deletions nornir/core/plugins/connections.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from typing import Any, Dict, Type, Optional
from typing import Any, Dict, Type, Optional, Protocol

from nornir.core.configuration import Config
from nornir.core.plugins.register import PluginRegister

from typing_extensions import Protocol


CONNECTIONS_PLUGIN_PATH = "nornir.plugins.connections"

Expand Down
4 changes: 1 addition & 3 deletions nornir/core/plugins/inventory.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from typing import Any, Type
from typing import Any, Type, Protocol

from nornir.core.inventory import Inventory, TransformFunction
from nornir.core.plugins.register import PluginRegister

from typing_extensions import Protocol


INVENTORY_PLUGIN_PATH = "nornir.plugins.inventory"
TRANSFORM_FUNCTION_PLUGIN_PATH = "nornir.plugins.transform_function"
Expand Down
4 changes: 1 addition & 3 deletions nornir/core/plugins/runners.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from typing import Any, List, Type
from typing import Any, List, Type, Protocol

from nornir.core.task import AggregatedResult, Task
from nornir.core.inventory import Host
from nornir.core.plugins.register import PluginRegister

from typing_extensions import Protocol


RUNNERS_PLUGIN_PATH = "nornir.plugins.runners"

Expand Down
4 changes: 1 addition & 3 deletions nornir/core/processor.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from typing import List
from typing import List, Protocol

from nornir.core.inventory import Host
from nornir.core.task import AggregatedResult, MultiResult, Task

from typing_extensions import Protocol


class Processor(Protocol):
"""
Expand Down
Loading

0 comments on commit d8c547c

Please sign in to comment.