Skip to content

Commit

Permalink
Some type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mgax committed Jan 28, 2024
1 parent 8a4c202 commit 62ed245
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opslib/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Props:

Meta = Meta

_meta = None
_meta: Meta = None # type: ignore
_props_dataclass: Any = None
props: Any

Expand Down
6 changes: 5 additions & 1 deletion opslib/places.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .callbacks import Callbacks
from .components import Component
from .lazy import Lazy, evaluate
from .local import run
from .local import LocalRunResult, run
from .props import Prop
from .results import Result
from .state import JsonState
Expand All @@ -21,6 +21,7 @@ class BaseHost(Component):
"""

with_sudo = False
ansible_variables: list

def file(self, **props):
"""
Expand Down Expand Up @@ -90,6 +91,9 @@ def sudo(self):
]
return rv

def run(self, *args, **kwargs) -> LocalRunResult:
...

def add_commands(self, cli):
@cli.forward_command
def run(args):
Expand Down

0 comments on commit 62ed245

Please sign in to comment.