Skip to content

Commit d8c547c

Browse files
authored
Version 3.4.1, fix missing dependencies (#867)
With contributions by @nemith
1 parent 325c8ca commit d8c547c

File tree

6 files changed

+523
-364
lines changed

6 files changed

+523
-364
lines changed

nornir/core/plugins/connections.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
from typing import Any, Dict, Type, Optional
1+
from typing import Any, Dict, Type, Optional, Protocol
22

33
from nornir.core.configuration import Config
44
from nornir.core.plugins.register import PluginRegister
55

6-
from typing_extensions import Protocol
7-
86

97
CONNECTIONS_PLUGIN_PATH = "nornir.plugins.connections"
108

nornir/core/plugins/inventory.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
from typing import Any, Type
1+
from typing import Any, Type, Protocol
22

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

6-
from typing_extensions import Protocol
7-
86

97
INVENTORY_PLUGIN_PATH = "nornir.plugins.inventory"
108
TRANSFORM_FUNCTION_PLUGIN_PATH = "nornir.plugins.transform_function"

nornir/core/plugins/runners.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
from typing import Any, List, Type
1+
from typing import Any, List, Type, Protocol
22

33
from nornir.core.task import AggregatedResult, Task
44
from nornir.core.inventory import Host
55
from nornir.core.plugins.register import PluginRegister
66

7-
from typing_extensions import Protocol
8-
97

108
RUNNERS_PLUGIN_PATH = "nornir.plugins.runners"
119

nornir/core/processor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
from typing import List
1+
from typing import List, Protocol
22

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

6-
from typing_extensions import Protocol
7-
86

97
class Processor(Protocol):
108
"""

0 commit comments

Comments
 (0)