Skip to content

Commit

Permalink
Make pyright happy
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Sep 4, 2024
1 parent d0812ed commit 77b9a15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions gzdev.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from docopt import docopt

if __name__ == '__main__':
assert __doc__ is not None # make pyright happy
args = docopt(__doc__, version='gzdev-core 0.1.0', options_first=True)
cmd = args['<command>']
is_valid = {'ign-docker-env': True,
Expand Down
1 change: 1 addition & 0 deletions plugins/ign-docker-env.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def normalize_args(args):

def main():
try:
assert __doc__ is not None # make pyright happy
ignition_version, linux_distro, docker_args, vol_args = normalize_args(
docopt(__doc__, version='gzdev-docker-env 0.1.0'))
rocker_cmd = build_rocker_command(ignition_version, linux_distro, docker_args, vol_args)
Expand Down
1 change: 1 addition & 0 deletions plugins/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ def remove_all_installed():

def main():
try:
assert __doc__ is not None # make pyright happy
args = normalize_args(docopt(__doc__,
version='gzdev-repository 0.2.0'))
config = load_config_file()
Expand Down

0 comments on commit 77b9a15

Please sign in to comment.