Skip to content

Commit

Permalink
sambacc: fixed mypy-0.990 errors
Browse files Browse the repository at this point in the history
Fixed errors detected by mypy-0.99.

See also: python/mypy#9091

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
  • Loading branch information
synarete authored and phlogistonjohn committed Nov 8, 2022
1 parent b4d2532 commit 9068e4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sambacc/commands/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _wrapper(f):
return _wrapper

def assemble(
self, arg_func: typing.Callable = None
self, arg_func: typing.Optional[typing.Callable] = None
) -> argparse.ArgumentParser:
parser = argparse.ArgumentParser()
if arg_func is not None:
Expand Down
2 changes: 1 addition & 1 deletion sambacc/ctdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,4 +545,4 @@ def __enter__(self) -> CLILeaderStatus:
def __exit__(
self, exc_type: ExcType, exc_val: ExcValue, exc_tb: ExcTraceback
) -> bool:
pass
return True

0 comments on commit 9068e4e

Please sign in to comment.