Skip to content

Commit

Permalink
Merge branch 'main' into ogenstad-type-hints
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers authored Oct 3, 2023
2 parents 4f66776 + d8c547c commit 071d077
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 071d077

Please sign in to comment.